Enable persistent data for Docker deployments (#46).

This commit is contained in:
Christopher Charbonneau Wells 2018-06-13 06:07:36 -07:00
parent 5baf5bca6b
commit 27c914228d
1 changed files with 11 additions and 1 deletions

View File

@ -3,6 +3,10 @@ version: "2"
services: services:
db: db:
image: postgres image: postgres
environment:
- PGDATA=/db-data
volumes:
- db:/db-data
app: app:
env_file: docker.env env_file: docker.env
build: . build: .
@ -11,3 +15,9 @@ services:
- "8000:8000" - "8000:8000"
depends_on: depends_on:
- db - db
volumes:
- baby_data:/app
volumes:
db:
baby_data: