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,12 +1,13 @@
---
version: "2" version: "2"
services: services:
db: db:
image: postgres image: postgres
environment: environment:
- PGDATA=/db-data - PGDATA=/db-data
volumes: volumes:
- db:/db-data - db:/db-data:rw
app: app:
image: cdubzzz/babybuddy image: cdubzzz/babybuddy
env_file: env_file:
@ -16,6 +17,9 @@ services:
- "8000:8000" - "8000:8000"
depends_on: depends_on:
- db - db
volumes:
- baby_data:/app:rw
volumes: volumes:
db: db: {}
baby_data: {}