Skip to main content

pgAdmin (PostgreSQL Web-UI)

docker-compose.yml

services:
  pgadmin:
    container_name: pgadmin
    image: dpage/pgadmin4:9.9.0
    volumes:
       - pgadmin:/root/.pgadmin
       - storage:/var/lib/pgadmin/storage
    ports:
      - 5050:80
    restart: unless-stopped
    env_file:
      - stack.env

  postgres:
      container_name: postgresql
      image: postgres:13.22
      environment:
          # username postgres
          - POSTGRES_PASSWORD=nC8.........8m5t
      ports:
          - '5432:5432'


volumes:
  pgadmin:
  storage:

.env

PGADMIN_DEFAULT_EMAIL=MAIL@MEINEDOMAIN.de
PGADMIN_DEFAULT_PASSWORD=MEIN-PGADMIN-WEBUI-PW (oder mit <openssl rand -hex 24> erzeugt)