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