A simple and production-ready Docker Compose configuration that deploys PostgreSQL and pgAdmin in separate containers.
- PostgreSQL 16
- pgAdmin 4
- Persistent storage with Docker volumes
- Environment-based configuration
- Easy local development setup
cp .env.example .env
docker compose up -dAccess pgAdmin:
- Host: postgres
- Port: 5432
- Username: admin
- Password: change_me
- Database: my_database