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
This commit is contained in:
Elliot Matson 2023-05-31 08:41:51 -05:00 committed by GitHub
parent e76347df00
commit bd7ba7cbd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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