Skip to content

Commit 5020509

Browse files
committed
Expose host directly in compose
1 parent e99f5a1 commit 5020509

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

compose.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ services:
77
working_dir: /var/www/html
88
volumes:
99
- ./:/var/www/html
10-
command: sh -c "npm install && npm run dev:docker"
10+
command: sh -c "npm install && npm run dev -- --host"
1111
networks:
1212
- default
1313

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
"type": "module",
66
"scripts": {
77
"dev": "vite",
8-
"dev:docker": "vite --host",
98
"build": "vite build",
109
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
1110
"preview": "vite preview"

0 commit comments

Comments
 (0)