# pgAdmin (PostgreSQL Web-UI)

## docker-compose.yml

```yaml
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

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

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-10/scaled-1680-/1Quimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-10/1Quimage.png)

[![image.png](https://wiki.folkerts.it/uploads/images/gallery/2025-10/scaled-1680-/5Kyimage.png)](https://wiki.folkerts.it/uploads/images/gallery/2025-10/5Kyimage.png)