Skip to content

Commit 164ee77

Browse files
committed
Adjust docker volume mounting strategy.
- Legacy-Id: 19638
1 parent 13d4e63 commit 164ee77

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.devcontainer/docker-compose.extend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,7 @@ services:
44
app:
55
environment:
66
EDITOR_VSCODE: 1
7+
volumes:
8+
- ..:/root/src:cached
79
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
810
network_mode: service:db

docker/docker-compose.extend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ services:
44
app:
55
ports:
66
- '8000:8000'
7+
volumes:
8+
- ..:/root/src
79
db:
810
ports:
911
- '3306'

docker/docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ services:
1212
VARIANT: 3.6-bullseye
1313
NODE_VERSION: '16'
1414

15-
volumes:
16-
- ..:/root/src:cached
1715
init: true
1816

1917
# Overrides default command so things don't shut down after the process ends.

0 commit comments

Comments
 (0)