Skip to content

Commit

Permalink
Enable persistent data for Docker deployments (#46).
Browse files Browse the repository at this point in the history
  • Loading branch information
cdubz committed Jun 13, 2018
1 parent 5baf5bc commit 27c9142
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,21 @@ version: "2"
services:
db:
image: postgres
environment:
- PGDATA=/db-data
volumes:
- db:/db-data
app:
env_file: docker.env
build: .
command: gunicorn -c /app/gunicorn.py babybuddy.wsgi
ports:
- "8000:8000"
depends_on:
- db
- db
volumes:
- baby_data:/app

volumes:
db:
baby_data:

0 comments on commit 27c9142

Please sign in to comment.