docker >= 17.12.0+
.docker-compose
.
- Clone or download this repository.
- Go inside of the directory,
cd compose-pgadmin
. - Run this command
docker-compose up -d
.
This compose file contains the following environment variables.
LOOPBACK
bind the service to the loopback IP address, the default is exposed.POSTGRES_PORT
the default value is5432
.POSTGRES_DB
the default value ispostgres
.POSTGRES_USER
the default value ispostgres
.POSTGRES_PASSWORD
the default value ischangeme
.PGADMIN_PORT
the default value is5050
.PGADMIN_DEFAULT_EMAIL
the default value ispgadmin4@pgadmin.org
.PGADMIN_DEFAULT_PASSWORD
the default value isadmin
.
You can create your own .env
file within this folder.
LOOPBACK=127.0.0.1
POSTGRES_PORT=5435
POSTGRES_DB=postgres_maintenance_db
POSTGRES_USER=user1
POSTGRES_PASSWORD=user12345
PGADMIN_PORT=5050
PGADMIN_DEFAULT_EMAIL=pgadmin@example.com
PGADMIN_DEFAULT_PASSWORD=admin123
localhost:5432
.- Username:
postgres
(as a default). - Password:
changeme
(as a default).
- URL:
http://127.0.0.1:5050/browser
orhttp://localhost:5050
. - Username:
pgadmin4@pgadmin.org
(as a default). - Password:
admin
(as a default).
- Host name/address:
postgres
or container namepostgres_container
. - Maintaince DB: as
POSTGRES_DB
, by defaultpostgres
. - Port:
5432
. - Username: as
POSTGRES_USER
, by defaultpostgres
. - Password: as
POSTGRES_PASSWORD
, by defaultchangeme
.
There are no easy way to configure pgadmin log verbosity and it can be overwhelming at times. It is possible to disable pgadmin logging on the container level.
Add the following to pgadmin
service in the docker-compose.yml
:
logging:
driver: "none"
- NOTES: see reference for more details.
This will run PGAdmin in Desktop Mode
, meaning you wont need to log in to access the web interface: PGADMIN_CONFIG_SERVER_MODE: 'False'
.