Merge pull request #63 from Akronix/patch-2

Make pgadmin config persistent and backups accesible for pgadmin
This commit is contained in:
Elliot Matson 2023-06-01 07:12:20 -05:00 committed by GitHub
commit 56248a7c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,6 +67,15 @@ services:
- *pgadmin-port
volumes:
- pgadmin-config:/pgadmin4-config
- pgadmin:/var/lib/pgadmin
- *bk-location
entrypoint: "/bin/sh"
command:
- -c
- |
mkdir -p /var/lib/pgadmin/storage/$${PGADMIN_DEFAULT_EMAIL//@/_}/
ln -s /backups /var/lib/pgadmin/storage/$${PGADMIN_DEFAULT_EMAIL//@/_}/
/entrypoint.sh
depends_on:
- postgres
- pgadmin-config
@ -84,3 +93,4 @@ services:
volumes:
pgadmin-config:
pgadmin: