From 9730ec7ede37535ea0d905b56d0905851c53331e Mon Sep 17 00:00:00 2001 From: greigdp Date: Sun, 31 Jul 2022 19:30:56 +0100 Subject: [PATCH] Fix pgadmin4 by avoiding volume overriding default directory In fd1d660dda67b4010f8148e960e5f3e03e167a92 a volume is set to override /pgadmin4, which is where the pgadmin code lies, so it cannot start. This change moves the server JSON to another path, so pgadmin4 can start again. --- docker-compose.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3064056..b30bc0c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -17,6 +17,7 @@ x-common: PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_PASSWORD: root PGADMIN_PORT: &pgadmin-port "3001:80" + PGADMIN_SERVER_JSON_FILE: /pgadmin4-config/servers.json # # ------------------------------------------------------------------------------------------ # DANGER ZONE BELOW @@ -66,7 +67,7 @@ services: ports: - *pgadmin-port volumes: - - pgadmin-config:/pgadmin4 + - pgadmin-config:/pgadmin4-config depends_on: - postgres - pgadmin-config