See https://www.pgadmin.org/ for the original project.
Starting with PgAdmin 2.1 upstream makes official docker image dpage/pgadmin4 (https://hub.docker.com/r/dpage/pgadmin4/).
However, I think this docker image has a number of issues:
centos base image. This means it contains a lot of bloated / unneeded thing, and
probably outdated packagesmod_wsgipg_dump and other toolsTherefore I decided to make this image. Here are its key features:
python:3.6-alpine3.7. Using Alpine linux leads to much smaller imagenode:6 image,
then I build psycopg2 and pycrypto wheels in python image and in the end I just install all
dependencies in a clean python:3.6-alpine3.7 image, so that it does not have any leftovers from the build
processpostgresql-client package, which includes pg_dump and other tools and I config
PgAdmin to find these tools by default-O) enabled. This way Python
does not have to compile modules on each container restart and consume space in overlay fsOfficial image occupies 558MB when uncompressed, while my image needs only 169MB.
This image has two mandatory configuration environment variables and one optional:
PGADMIN_SETUP_EMAIL -- email for default accountPGADMIN_SETUP_PASSWORD -- password for default accountPGADMIN_WAITRESS_THREADS -- number of waitress thread workers to start, default is 4You can mount /var/lib/pgadmin to make PgAdmin configuration persistent.
PgAdmin4 will listen for HTTP connections on port 8080.
Sample docker run command:
docker run -d \
-e PGADMIN_SETUP_EMAIL=.... \
-e PGADMIN_SETUP_PASSWORD=.... \
-v pgadmin_data:/var/lib/pgadmin \
-p 8080:8080 \
maksbotan/pgadmin4
Content type
Image
Digest
Size
93.7 MB
Last updated
over 8 years ago
docker pull maksbotan/pgadmin4