Skip to content

This repository provides a simple Docker Compose setup for running a PostgreSQL database alongside Adminer

Notifications You must be signed in to change notification settings

adke29/postgresql-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

[DEPRECATED] PostgreSQL + Adminer with Docker Compose

This repository provides a simple Docker Compose setup for running a PostgreSQL database alongside Adminer β€” a lightweight database management tool.

πŸ“¦ Services

  • DB

    • Official image: postgres
    • Default Username: postgres
    • Default Password: postgres
    • Default database: same as username
  • Adminer

    • Official image: adminer
    • Web UI for interacting with PostgreSQL via browser

πŸ›  Prerequisites

πŸš€ Quick Start

  1. Create a .env file (optional but recommended):
POSTGRES_USER=test
POSTGRES_PASSWORD=admin123
POSTGRES_DB=test_db
  1. Start the services:
docker-compose up -d
  1. Open Adminer in your browser:
http://localhost:8080
  1. Use the following credentials to connect:
  • System: PostgreSQL
  • Server: db
  • Username: [Your Username]
  • Password: [Your Password]
  • Database: [Your Database]

Shutdown

To stop and remove containers:

docker-compose down

To also remove volumes (erases all data):

docker-compose down -v

File Structure

β”œβ”€β”€ .env (optional)
β”œβ”€β”€ .gitignore
β”œβ”€β”€ docker-compose.yml
└── README.md

About

This repository provides a simple Docker Compose setup for running a PostgreSQL database alongside Adminer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published