Adjust docker volume mounting strategy.

- Legacy-Id: 19638
This commit is contained in:
Robert Sparks 2021-11-11 17:20:20 +00:00
parent 13d4e636bc
commit 164ee7792c
3 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -4,6 +4,8 @@ services:
app:
ports:
- '8000:8000'
volumes:
- ..:/root/src
db:
ports:
- '3306'

View file

@ -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.