Skip to content

Reusable Docker Compose environment for PostgreSQL with Adminer, ideal for local development, testing, and CI pipelines

Notifications You must be signed in to change notification settings

DarmawanWeb/docker-postgres-adminer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker Postgres + Adminer

A simple and reusable Docker environment for PostgreSQL with Adminer as a lightweight database UI.

This repository is designed for:

  • Local development
  • Backend API testing
  • CI pipelines
  • Quick PostgreSQL setup without hassle

🚀 Services

Service Description Default Port
Postgres PostgreSQL 16 Database 5432
Adminer Database Web UI 8080

📦 Requirements

  • Docker
  • Docker Compose

⚙️ Setup

Clone the repository:

git clone https://github.com/your-username/docker-postgres-adminer.git
cd docker-postgres-adminer

Create environment file:

cp .env.example .env

Edit .env if needed.


▶️ Run Containers

docker compose up -d

🛠️ Access Adminer

Open your browser:

http://localhost:8080

Login details:

  • System: PostgreSQL
  • Server: postgres
  • Username: value from .env
  • Password: value from .env
  • Database: value from .env

🧪 Stop Containers

docker compose down

Remove volumes (delete database data):

docker compose down -v

💾 Data Persistence

PostgreSQL data is stored in a Docker volume:

postgres_data

Your data will persist between container restarts.

About

Reusable Docker Compose environment for PostgreSQL with Adminer, ideal for local development, testing, and CI pipelines

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published