A simple Docker Compose stack with 2 services:
- PostgreSQL database with mounted volume (data is persisted)
- pgAdmin4 to administer the database through the UI (on a port defined in .env)
- Clone the repo
- Copy .env-dist to .env and edit it. Configure the pgAdmin4 port
docker-compose up
- Open
http://localhost:[pgAdmin4-port-from-step-2]
- PGADMIN_PORT - which port will pgAdmin4 be accessible from. After starting the stack, open
http://localhost:${PGADMIN_PORT}
- PGADMIN_DEFAULT_USERNAME - The username to use to login to pgAdmin4
- PGADMIN_DEFAULT_PASSWORD - The password for the above username