We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6865a44 commit 4c64bc3Copy full SHA for 4c64bc3
compose.yml
@@ -0,0 +1,16 @@
1
+services:
2
+ drawdb:
3
+ image: node:20-alpine
4
+ container_name: drawdb
5
+ ports:
6
+ - 5173:5173
7
+ working_dir: /var/www/html
8
+ volumes:
9
+ - ./:/var/www/html
10
+ command: sh -c "npm install && npm run dev:docker"
11
+ networks:
12
+ - default
13
+
14
+networks:
15
+ default:
16
+ driver: bridge
package.json
@@ -5,6 +5,7 @@
"type": "module",
"scripts": {
"dev": "vite",
+ "dev:docker": "vite --host",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
0 commit comments