From 9b1944831765f291f2b5961eca5c2790ab5b517f Mon Sep 17 00:00:00 2001 From: Paul Calabro Date: Fri, 4 Oct 2019 01:50:41 -0700 Subject: [PATCH] A couple minor changes - Added support for persisting static content using the advice from https://github.com/cdubz/babybuddy/issues/46#issuecomment-394020997. Thanks @djmwj ! - Fixed a couple yamllint warning messages. - Set some values explicitly to match `docker-compose config`. --- docker-compose.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 1079bd6d..79f6b683 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,21 +1,25 @@ +--- version: "2" services: db: image: postgres environment: - - PGDATA=/db-data + - PGDATA=/db-data volumes: - - db:/db-data + - db:/db-data:rw app: image: cdubzzz/babybuddy - env_file: + env_file: - docker.env command: gunicorn -c /app/gunicorn.py babybuddy.wsgi ports: - "8000:8000" depends_on: - db + volumes: + - baby_data:/app:rw volumes: - db: + db: {} + baby_data: {}