From 3066b7f62f53f80e6894f4ec9660ed3e4402583e Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 8 Feb 2020 20:22:36 -0800 Subject: [PATCH] Add persistent storage for media in example Docker Compose config --- docker-compose.example.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 9671da75..77a1ed8a 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -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: {}