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:
|
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:
|
||||||
|
|
Loading…
Reference in New Issue