compose-postgres
                                
                                 compose-postgres copied to clipboard
                                
                                    compose-postgres copied to clipboard
                            
                            
                            
                        Postgresql & pgadmin4 powered by compose
Postgresql & PgAdmin powered by compose
Requirements:
- docker >= 17.12.0+
- docker-compose
Quick Start
- Clone or download this repository
- Go inside of directory,  cd compose-postgres
- Run this command docker-compose up -d
Environments
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 [email protected]
- PGADMIN_DEFAULT_PASSWORDthe default value is admin
Access to postgres:
- localhost:5432
- Username: postgres (as a default)
- Password: changeme (as a default)
Access to PgAdmin:
- URL: http://localhost:5050
- Username: [email protected] (as a default)
- Password: admin (as a default)
Add a new server in PgAdmin:
- Host name/address postgres
- Port 5432
- Username as POSTGRES_USER, by default:postgres
- Password as POSTGRES_PASSWORD, by defaultchangeme
Logging
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"