Is there a way to pre-configure pgadmin (maybe via env variables) with some server connections?
Say you have this docker-compose.yml, something like PGADMIN_CONNECTIONS
env variable in this example? (PGADMIN_CONNECTIONS
is probably not a valid ENV variable, it's just an ilustration)
version: '3'
services:
postgres:
image: postgres
hostname: postgres
ports:
- "5432:5432"
environment:
POSTGRES_USER: dbuser
POSTGRES_PASSWORD: dbpass
POSTGRES_DB: TEST_SM
pgadmin:
image: dpage/pgadmin4
ports:
- "80:80"
environment:
PGADMIN_DEFAULT_EMAIL: pgadmin4@pgadmin.org
PGADMIN_DEFAULT_PASSWORD: admin
??PGADMIN_CONNECTIONS: dbuser:dbpass@postgres:5432