Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Expose host directly in compose

1ilit5020509626b4
diff --git a/compose.yml b/compose.yml
index ea1a0f1d..08a7de72 100644
--- a/compose.yml
+++ b/compose.yml
@@ -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
diff --git a/package.json b/package.json
index 1a369fcc..cff6fa59 100644
--- a/package.json
+++ b/package.json
@@ -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"