- docker >= 17.12.0+
- docker-compose
Install Docker: https://docs.docker.com/engine/install/
- Clone or download this repository
- Go inside of directory,  cd compose-postgres
- Run this command docker-compose up
This Compose file contains the following environment variables:
- POSTGRES_USERthe default value is postgres
- POSTGRES_PASSWORDthe default value is changeme
- PGADMIN_PORTthe default value is 5050
- PGADMIN_DEFAULT_EMAILthe default value is pgadmin4@pgadmin.org
- PGADMIN_DEFAULT_PASSWORDthe default value is admin
- localhost:5432
- If you are using windows, localhost may not work, use the ip provided by the folowing comand 'docker-machine ip' instead
- Username: postgres (as a default)
- Password: changeme (as a default)
- 
URL: http://localhost:5050
- 
If you are using windows, localhost may not work, use the ip provided by the folowing comand 'docker-machine ip' instead 
- 
Username: pgadmin4@pgadmin.org (as a default) 
- 
Password: admin (as a default) 
- Host name/address postgres
- Port 5432
- Username as POSTGRES_USER, by default:postgres
- Password as POSTGRES_PASSWORD, by defaultchangeme