mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
In dev mode, expose ports only to localhost
This commit is contained in:
@@ -5,7 +5,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./frontend/:/usr/src/app
|
- ./frontend/:/usr/src/app
|
||||||
ports:
|
ports:
|
||||||
- 5173:5173
|
- 127.0.0.1:5173:5173
|
||||||
command: >
|
command: >
|
||||||
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
|
sh -c "cd /usr/src/app && npm ci && npm run dev -- --host"
|
||||||
now-db-backend:
|
now-db-backend:
|
||||||
@@ -14,7 +14,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./backend/:/usr/src/app
|
- ./backend/:/usr/src/app
|
||||||
ports:
|
ports:
|
||||||
- 4000:4000
|
- 127.0.0.1:4000:4000
|
||||||
command: >
|
command: >
|
||||||
sh -c "cd /usr/src/app && npm ci && npm run dev"
|
sh -c "cd /usr/src/app && npm ci && npm run dev"
|
||||||
env_file: .db.dev.env
|
env_file: .db.dev.env
|
||||||
@@ -25,7 +25,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./data/:/docker-entrypoint-initdb.d
|
- ./data/:/docker-entrypoint-initdb.d
|
||||||
ports:
|
ports:
|
||||||
- 3306:3306
|
- 127.0.0.1:3306:3306
|
||||||
volumes:
|
volumes:
|
||||||
nowdb-db:
|
nowdb-db:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user