Expose host directly in compose

This commit is contained in:
1ilit 2024-06-01 20:53:07 +03:00
parent e99f5a1692
commit 5020509626
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,7 @@ services:
working_dir: /var/www/html
volumes:
- ./:/var/www/html
command: sh -c "npm install && npm run dev:docker"
command: sh -c "npm install && npm run dev -- --host"
networks:
- default

View File

@ -5,7 +5,6 @@
"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"