32 lines
954 B
YAML
32 lines
954 B
YAML
# docker-compose.yml — pgAdmin 4 voor PostgreSQL op Synology NAS
|
|
# Plaats op NAS: /volume1/docker/postgres-web/
|
|
#
|
|
# Starten: docker-compose up -d
|
|
# Web UI: http://192.168.1.211:5434
|
|
# Stoppen: docker-compose down
|
|
# Logs: docker-compose logs -f
|
|
|
|
services:
|
|
pgadmin:
|
|
image: dpage/pgadmin4:latest
|
|
container_name: pgadmin
|
|
restart: unless-stopped
|
|
|
|
ports:
|
|
- "5434:80" # Web UI: http://NAS_IP:5434
|
|
|
|
environment:
|
|
# Standaard inlog voor de web UI
|
|
- PGADMIN_DEFAULT_EMAIL=mo@el-kadi.nl
|
|
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_PASSWORD:-WaQTUw2t}
|
|
# Masquerade root URL voor nginx reverse proxy
|
|
- PGADMIN_CONFIG_SERVER_MODE=True
|
|
- PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED=False
|
|
|
|
volumes:
|
|
- pgadmin-data:/var/lib/pgadmin # persistentie: server lijst, instellingen
|
|
- ./servers.json:/pgadmin4/servers.json # pre-configureer database connecties
|
|
|
|
volumes:
|
|
pgadmin-data:
|