Add persistent storage for media in example Docker Compose config

This commit is contained in:
Christopher C. Wells 2020-02-08 20:22:36 -08:00
parent c890fb5dce
commit 3066b7f62f
1 changed files with 3 additions and 1 deletions

View File

@ -11,10 +11,11 @@ services:
# See README.md#configuration for other environment configuration options.
environment:
- ALLOWED_HOSTS=
- DEBUG=False
- DJANGO_SETTINGS_MODULE=babybuddy.settings.docker
- SECRET_KEY=
- TIME_ZONE=
volumes:
- media:/app/media:rw
command: gunicorn -c /app/gunicorn.py babybuddy.wsgi
ports:
- "8000:8000"
@ -22,3 +23,4 @@ services:
- db
volumes:
db: {}
media: {}