- docker >= 17.12.0+
- docker-compose
- Clone or download this repository
- Go inside of directory,
cd postgres-docker-compose - Run this command
docker-compose up -d
This Compose file contains the following environment variables:
POSTGRES_USERthe default value is postgresPOSTGRES_PASSWORDthe default value is setyourpasswordPGADMIN_PORTthe default value is 5050PGADMIN_DEFAULT_EMAILthe default value is pgadmin4@pgadmin.orgPGADMIN_DEFAULT_PASSWORDthe default value is admin
localhost:5432- Username: postgres
- Password: setyourpassword
- URL: http://localhost:5050
- Username: pgadmin@pgadmin.org
- Password: admin
- Host name/address
postgres - Port
5432 - Username as
POSTGRES_USER, by default:postgres - Password as
POSTGRES_PASSWORD, by defaultsetyourpassword
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"
