Merge pull request #17 from greigdp/main

Fix pgadmin4 by avoiding volume overriding default directory
This commit is contained in:
Elliot Matson 2022-07-31 13:56:24 -05:00 committed by GitHub
commit 25147ebe23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -17,6 +17,7 @@ x-common:
PGADMIN_DEFAULT_EMAIL: admin@admin.com PGADMIN_DEFAULT_EMAIL: admin@admin.com
PGADMIN_DEFAULT_PASSWORD: root PGADMIN_DEFAULT_PASSWORD: root
PGADMIN_PORT: &pgadmin-port "3001:80" PGADMIN_PORT: &pgadmin-port "3001:80"
PGADMIN_SERVER_JSON_FILE: /pgadmin4-config/servers.json
# #
# ------------------------------------------------------------------------------------------ # ------------------------------------------------------------------------------------------
# DANGER ZONE BELOW # DANGER ZONE BELOW
@ -66,7 +67,7 @@ services:
ports: ports:
- *pgadmin-port - *pgadmin-port
volumes: volumes:
- pgadmin-config:/pgadmin4 - pgadmin-config:/pgadmin4-config
depends_on: depends_on:
- postgres - postgres
- pgadmin-config - pgadmin-config