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`.
This commit is contained in:
Paul Calabro 2019-10-04 01:50:41 -07:00 committed by Christopher Charbonneau Wells
parent 326a6f448c
commit 9b19448317
1 changed files with 8 additions and 4 deletions

View File

@ -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: {}