mirror of https://github.com/snachodog/mybuddy.git
Add persistent storage for media in example Docker Compose config
This commit is contained in:
parent
c890fb5dce
commit
3066b7f62f
|
@ -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: {}
|
||||||
|
|
Loading…
Reference in New Issue