Sign inSign up

ddidier/pgadmin4

By ddidier

Updated about 9 years ago

The pgAdmin 4 administration tool for PostgreSQL (server mode).

Image
1

10K+

ddidier/pgadmin4 repository overview

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
This project is not maintained anymore and has been archived!
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛

NDD Docker pgAdmin 4

A Docker image for pgAdmin 4.

A Docker image for pgAdmin3 is available too!

The image is based upon the official httpd:2.4 image and the official pgAdmin4 release.

Installation

From source
git clone [email protected]:ndd-docker/ndd-docker-pgadmin4.git
cd ndd-docker-pgadmin4
docker build -t ddidier/pgadmin4 .
From Docker Hub
docker pull ddidier/pgadmin4

Usage

The settings are stored in the container in the directory /data. You have multiple choices to keep them:

  • never delete your container
  • use a data volume e.g. -v $HOST_DATA_DIR:/data
  • use a data volume container e.g. --volumes-from pgadmin4-data

If you store these data in a directory like ~/.docker-data/<CONTAINER_NAME>, you can run this image using:

docker run --rm                       \
    -p <HOST_PORT>:80                 \
    -v ~/.docker-data/pgadmin4:/data  \
    --name pgadmin4                   \
    ddidier/pgadmin4

The configuration is set the first time the container is started and is then immutable.

The default values are:

Environment variableDefault value
DEFAULT_SERVER_HOSTlocalhost
DEFAULT_SERVER_PORT5050
SQLITE_TIMEOUT1000
MAIL_SERVERlocalhost
MAIL_PORT25
MAIL_USE_SSLFalse
MAIL_USE_TLSFalse
MAIL_USERNAME
MAIL_PASSWORD
MAIL_DEBUGFalse
UPGRADE_CHECK_ENABLEDTrue
PGADMIN_SETUP_EMAIL[email protected]
PGADMIN_SETUP_PASSWORDchangeme

You may change those using -e parameters when starting the container for the first time, or extend the image with someting like this:

FROM       ddidier/pgadmin4
MAINTAINER David DIDIER

ENV \
    DEFAULT_SERVER_HOST=localhost \
    DEFAULT_SERVER_PORT=5050 \
    SQLITE_TIMEOUT=500 \
    MAIL_SERVER=localhost \
    MAIL_PORT=25 \
    MAIL_USE_SSL=False \
    MAIL_USE_TLS=False \
    MAIL_USERNAME = \
    MAIL_PASSWORD = \
    MAIL_DEBUG=False \
    UPGRADE_CHECK_ENABLED=True \
    [email protected] \
    PGADMIN_SETUP_PASSWORD=changeme

TODO

  • activate HTTPS on Apache virtualhost.
  • give a ServerName
  • filter too many logs

Tag summary

Content type

Image

Digest

Size

248.2 MB

Last updated

about 9 years ago

docker pull ddidier/pgadmin4