21 lines
675 B
YAML
21 lines
675 B
YAML
services:
|
|
pgadmin:
|
|
container_name: pgadmin
|
|
image: dpage/pgadmin4:8.6
|
|
restart: always
|
|
networks:
|
|
- proxynet
|
|
user: '$UID:$GID'
|
|
env_file:
|
|
- ./secrets/vars.env
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.pgadmin.rule=Host(`pgadmin.${DOMAIN}`)"
|
|
- "traefik.http.routers.pgadmin.middlewares=pgadmin-auth"
|
|
- "traefik.http.middlewares.pgadmin-auth.basicauth.usersfile=/httpauth/usersfile.htpasswd"
|
|
environment:
|
|
PGADMIN_CONFIG_SERVER_MODE: 'False'
|
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
|
volumes:
|
|
- ./data/pgadmin:/var/lib/pgadmin
|
|
- ./secrets/httpauth:/httpauth |