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