- docker
- docker-compose
git clone [email protected]:lohazo/docker-compose-postgresql.git
- Go inside of directory,
cd compose-postgres
- Run this command
docker-compose up -d
This Compose file contains the following environment variables:
POSTGRES_USER
the default value is postgresPOSTGRES_PASSWORD
the default value is postgresPGADMIN_PORT
the default value is 5555PGADMIN_DEFAULT_EMAIL
the default value is [email protected]PGADMIN_DEFAULT_PASSWORD
the default value is admin
localhost:5432
- Username: postgres (default)
- Password: postgres (default)
- URL:
http://localhost:5555
- Username: [email protected] (default)
- Password: admin (default)
- Host name/address
postgres
- Port
5432
- Username as
POSTGRES_USER
, by default:postgres
- Password as
POSTGRES_PASSWORD
, by defaultpostgres