chore: fix node_modules volume for docker dev

This commit is contained in:
NGPixel 2022-03-10 13:03:45 -05:00
parent d8e5092e5f
commit 9ae07e44e6
No known key found for this signature in database
GPG key ID: 8FDA2F1757F60D63
2 changed files with 3 additions and 1 deletions

View file

@ -7,5 +7,6 @@ services:
DJANGO_SETTINGS_MODULE: settings_local_sqlitetest
volumes:
- ..:/root/src
- /root/src/node_modules
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db

View file

@ -5,7 +5,8 @@ services:
ports:
- '8000:8000'
volumes:
- ..:/root/src
- ..:/root/src
- /root/src/node_modules
db:
ports:
- '3306'