Merge pull request #63 from Akronix/patch-2
Make pgadmin config persistent and backups accesible for pgadmin
This commit is contained in:
commit
56248a7c0d
@ -67,6 +67,15 @@ services:
|
|||||||
- *pgadmin-port
|
- *pgadmin-port
|
||||||
volumes:
|
volumes:
|
||||||
- pgadmin-config:/pgadmin4-config
|
- 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:
|
depends_on:
|
||||||
- postgres
|
- postgres
|
||||||
- pgadmin-config
|
- pgadmin-config
|
||||||
@ -84,3 +93,4 @@ services:
|
|||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
pgadmin-config:
|
pgadmin-config:
|
||||||
|
pgadmin:
|
||||||
|
Loading…
Reference in New Issue
Block a user