This repository provides a simple Docker Compose setup for running a PostgreSQL database alongside Adminer β a lightweight database management tool.
-
DB
- Official image:
postgres - Default Username:
postgres - Default Password:
postgres - Default database: same as username
- Official image:
-
Adminer
- Official image:
adminer - Web UI for interacting with PostgreSQL via browser
- Official image:
- Create a .env file (optional but recommended):
POSTGRES_USER=test
POSTGRES_PASSWORD=admin123
POSTGRES_DB=test_db- Start the services:
docker-compose up -d- Open Adminer in your browser:
http://localhost:8080- Use the following credentials to connect:
- System: PostgreSQL
- Server: db
- Username: [Your Username]
- Password: [Your Password]
- Database: [Your Database]
To stop and remove containers:
docker-compose downTo also remove volumes (erases all data):
docker-compose down -vβββ .env (optional)
βββ .gitignore
βββ docker-compose.yml
βββ README.md