From b5fd5cfaed2a12312a66b9ef92ad77db5b6ea0ec Mon Sep 17 00:00:00 2001 From: Yann Papouin Date: Wed, 25 Aug 2021 13:47:32 +0200 Subject: [PATCH] Fix db-data volume in docker-compose.yml Use data folder otherwise a second volume is created that becomes orphaned after a docker-compose down. --- docker/docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 52a6c42b..14c5131d 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -6,7 +6,7 @@ services: db: image: postgres:12 volumes: - - db-data:/var/lib/postgresql + - db-data:/var/lib/postgresql/data environment: - POSTGRES_DB=$DB_NAME - POSTGRES_PASSWORD=$DB_PASSWORD