Adjust docker volume mounting strategy.
- Legacy-Id: 19638
This commit is contained in:
parent
13d4e636bc
commit
164ee7792c
|
@ -4,5 +4,7 @@ services:
|
||||||
app:
|
app:
|
||||||
environment:
|
environment:
|
||||||
EDITOR_VSCODE: 1
|
EDITOR_VSCODE: 1
|
||||||
|
volumes:
|
||||||
|
- ..:/root/src:cached
|
||||||
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
|
||||||
network_mode: service:db
|
network_mode: service:db
|
|
@ -4,6 +4,8 @@ services:
|
||||||
app:
|
app:
|
||||||
ports:
|
ports:
|
||||||
- '8000:8000'
|
- '8000:8000'
|
||||||
|
volumes:
|
||||||
|
- ..:/root/src
|
||||||
db:
|
db:
|
||||||
ports:
|
ports:
|
||||||
- '3306'
|
- '3306'
|
|
@ -12,8 +12,6 @@ services:
|
||||||
VARIANT: 3.6-bullseye
|
VARIANT: 3.6-bullseye
|
||||||
NODE_VERSION: '16'
|
NODE_VERSION: '16'
|
||||||
|
|
||||||
volumes:
|
|
||||||
- ..:/root/src:cached
|
|
||||||
init: true
|
init: true
|
||||||
|
|
||||||
# Overrides default command so things don't shut down after the process ends.
|
# Overrides default command so things don't shut down after the process ends.
|
||||||
|
|
Loading…
Reference in a new issue