pgAdmin4 container image with password-less usage configuration.
Sample docker-compose.yml
:
pgadmin4:
image: dcagatay/pwless-pgadmin4:latest
ports:
- 15432:80
environment:
POSTGRES_USER: my_user
POSTGRES_PASSWORD: my_pass
POSTGRES_HOST: "postgres"
POSTGRES_PORT: "5432"
# POSTGRES_DB: "*"
A quick example could be found in docker-compose.yml
.
POSTGRES_USER
: Postgres DB user name. (Required)POSTGRES_PASSWORD
: Postgres DB user password. (Required)POSTGRES_HOST
: PostgreSQL DB Host. (Default: postgres)POSTGRES_PORT
: PostgreSQL DB Port. (Default: 5432)POSTGRES_DB
: PostgreSQL DB name. (Default: *, Asterisk means any db.)You can configure multiple hosts by adding enumerated environment variables, where X is the index of the host (starting from 1
):
POSTGRES_USER_X
: Postgres DB user name. (Required)POSTGRES_PASSWORD_X
: Postgres DB user password. (Required)POSTGRES_HOST_X
: PostgreSQL DB Host. (Required)POSTGRES_PORT_X
: PostgreSQL DB Port. (Default: 5432)POSTGRES_DB_X
: PostgreSQL DB name. (Default: *, meaning any db.)A multi database example usage could be found in docker-compose-multi.yml
.