Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 985 Bytes

File metadata and controls

25 lines (15 loc) · 985 Bytes

About

A long-running pgAdmin 4 container that I use as part of my local setup, where I always configure databases within a Docker Compose setup.

Usage

docker compose up -d

Then open http://localhost:5050. No login (desktop mode).

Registering a server

Each project runs its Postgre as a container that publishes a port on the host. Register the server in pgAdmin with:

  • Host: host.docker.internal
  • Port: whatever the project publishes (typically 5432)
  • User / Database / Password: as defined by that project

The same pgAdmin instance reaches any project's database without needing to attach this container to project networks. Only one Postgres can bind a given host port at a time, so either run one project at a time or assign distinct host ports per project (5432, 5433, …).

Design choices

See the comments in docker-compose.yaml for more details on the configuration.