This project allows you to quickly deploy PostgreSQL and pgAdmin using Docker Compose.
- Docker
- Docker Compose
- Copy the
.env.examplefile to.envand customize the environment variables as needed. - Start the services:
docker-compose up -d
POSTGRES_USER— PostgreSQL username (default: postgres)POSTGRES_PASSWORD— PostgreSQL password (default: postgres)POSTGRES_DB— database name (default: postgres)POSTGRES_PORT— PostgreSQL port (default: 5432)PGADMIN_DEFAULT_EMAIL— email for pgAdmin loginPGADMIN_DEFAULT_PASSWORD— password for pgAdmin loginPGADMIN_PORT— pgAdmin port (default: 80)
- PostgreSQL:
localhost:<POSTGRES_PORT> - pgAdmin:
http://localhost:<PGADMIN_PORT>