From bd7ba7cbd30c906d4673e65435f03d96e1b6e77c Mon Sep 17 00:00:00 2001 From: Elliot Matson <1711604+elliotmatson@users.noreply.github.com> Date: Wed, 31 May 2023 08:41:51 -0500 Subject: [PATCH] Update docker-compose.yml This get's closer, but it looks like pgadmin overwrites the whole storage directory when it initializes, so the created and linked folder is gone by the time pgadmin is up and running --- docker-compose.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ac6f852..12d26ea 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -69,6 +69,13 @@ services: - pgadmin-config:/pgadmin4-config - pgadmin:/var/lib/pgadmin - *bk-location + command: + - /bin/sh + - -c + - | + 'mkdir /var/lib/pgadmin/storage/$${PGADMIN_DEFAULT_EMAIL//@/_}/' + 'ln -s /backups /var/lib/pgadmin/storage/$${PGADMIN_DEFAULT_EMAIL//@/_}/' + '/entrypoint.sh' depends_on: - postgres - pgadmin-config