diff --git a/docker-compose.yml b/docker-compose.yml index 280c91f1..cf8c6b8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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 \ No newline at end of file + - db + volumes: + - baby_data:/app + +volumes: + db: + baby_data: