Forked from compose-postgres
This compose store postgres data and pgadmin data in new folders inside the root folder
You may need to execute sudo chown -R 5050:5050 pgadmin inside the root forder so pgadmin can store its data.
- docker >= 17.12.0+
- docker-compose
- Clone or download this repository
- Go inside of directory,
cd compose-postgis - 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 changemePGADMIN_PORTthe default value is 5050PGADMIN_DEFAULT_EMAILthe default value is pgadmin4@pgadmin.orgPGADMIN_DEFAULT_PASSWORDthe default value is admin
You can create a .env file that store the value of enviorment variables like this:
POSTGRES_USER=yourUser
POSTGRES_PASSWORD=yourPassword
PGADMIN_DEFAULT_EMAIL=name@domain.com
PGADMIN_DEFAULT_PASSWORD=password
- URL:
http://localhost:5050 - Username: pgadmin4@pgadmin.org (as a default)
- Password: admin (as a default)
- Connection host name:
db - Username: postgres (as a default)
- Password: changeme (as a default)