mirror of https://github.com/snachodog/mybuddy.git
Enable persistent data for Docker deployments (#46).
This commit is contained in:
parent
5baf5bca6b
commit
27c914228d
|
@ -3,6 +3,10 @@ version: "2"
|
|||
services:
|
||||
db:
|
||||
image: postgres
|
||||
environment:
|
||||
- PGDATA=/db-data
|
||||
volumes:
|
||||
- db:/db-data
|
||||
app:
|
||||
env_file: docker.env
|
||||
build: .
|
||||
|
@ -10,4 +14,10 @@ services:
|
|||
ports:
|
||||
- "8000:8000"
|
||||
depends_on:
|
||||
- db
|
||||
- db
|
||||
volumes:
|
||||
- baby_data:/app
|
||||
|
||||
volumes:
|
||||
db:
|
||||
baby_data:
|
||||
|
|
Loading…
Reference in New Issue