From c1ea856389c7b788c8622dbf508eef7cc4b44ebc Mon Sep 17 00:00:00 2001 From: Philip Webb Date: Fri, 27 Oct 2023 08:21:07 +0800 Subject: [PATCH] The volume path for db-data was wrong. needed data sub-folder. Without that wasn't persisting the db on stop of container. --- docker-compose.example.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index 6be779880..8ee616cc5 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -25,7 +25,7 @@ services: image: docker.io/postgres:10-alpine restart: always volumes: - - db-data:/var/lib/postgresql + - db-data:/var/lib/postgresql/data environment: - POSTGRES_USER=limesurvey - POSTGRES_DB=limesurvey