Refactor volume mounts in docker-compose.yml for clarity and consistency
This commit is contained in:
@@ -15,10 +15,12 @@ services:
|
||||
command: python manage.py runserver 0.0.0.0:8000
|
||||
#command: pip install -r requirements.txt
|
||||
volumes:
|
||||
- ../:/usr/src/app # mount the whole repo into the container
|
||||
- ./backups:/usr/src/backups
|
||||
- ./media:/usr/src/media
|
||||
- ./static:/usr/src/static
|
||||
# Mount the rad app directory into the container WORKDIR used by the Dockerfile
|
||||
- ./rad:/usr/src/rad
|
||||
# Mount host media/static/backups into sensible container paths
|
||||
- ./backups:/usr/src/rad/backups
|
||||
- ./media:/usr/src/rad/media
|
||||
- ./static:/usr/src/rad/static
|
||||
ports:
|
||||
- 8000:8000
|
||||
- 3459:3459
|
||||
|
||||
Reference in New Issue
Block a user