Public Repository

Last pushed: a month ago
Short Description
pgAdmin 4 is a web based administration tool for the PostgreSQL database.
Full Description

Warning

This container is a work in progress and may have bugs! Please report any issues through the pgAdmin support changes. See https://www.pgadmin.org/support/list/

Running

The container will accept the following variables at startup:

PGADMIN_DEFAULT_EMAIL

Default: container@pgadmin.org

This is the email address used when setting up the initial administrator account to login to pgAdmin.

PGADMIN_DEFAULT_PASSWORD

Default: Conta1ner

This is the password used when setting up the initial administrator account to login to pgAdmin.

PGADMIN_ENABLE_TLS

Default: Conta1ner

If set to the default, False, the container will listen on port 80 for connections in plain text. If set to True, the container will listen on port 443 for TLS connections.

When TLS is enabled, a certificate and key must be provided. Typically these should be stored on the host file system and mounted from the container. The expected paths are /certs/server.crt and /certs/server.key

PGADMIN_SERVER_NAME

Default: pgadmin4

This variable allows you to specify the value used for the Apache HTTPD ServerName directive. This is commonly used to ensure the CN of the TLS certificate matches what the server expects.

Examples

Run a simple container over port 80:

docker pull dpage/pgadmin4
docker run -p 80:80 \
-e "PGADMIN_DEFAULT_EMAIL=user@domain.com" \
-e "PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
-d dpage/pgadmin4

Run a TLS secured container using a shared config/storage directory in /private/var/lib/pgadmin on the host:

docker pull dpage/pgadmin4
docker run -p 443:443 \
-v "/private/var/lib/pgadmin:/var/lib/pgadmin" \
-v "/path/to/certificate.cert:/certs/server.cert" \
-v "/path/to/certificate.key:/certs/server.key" \
-e "PGADMIN_DEFAULT_EMAIL=user@domain.com" \
-e "PGADMIN_DEFAULT_PASSWORD=SuperSecret" \
-e "PGADMIN_ENABLE_TLS=True" \
-e "PGADMIN_SERVER_NAME=pgadmin.domain.com" \
-d dpage/pgadmin4

Docker Pull Command
Owner
dpage