36 lines
1.4 KiB
YAML
36 lines
1.4 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
trading_card_games_pgadmin:
|
|
image: dpage/pgadmin4:latest
|
|
container_name: trading_card_games_pgadmin
|
|
restart: unless-stopped
|
|
environment:
|
|
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL:-admin@example.com}
|
|
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD:-changeme}
|
|
PGADMIN_CONFIG_SERVER_MODE: 'True'
|
|
PGADMIN_CONFIG_MASTER_PASSWORD_REQUIRED: 'False'
|
|
volumes:
|
|
- trading_card_games_pgadmin_data:/var/lib/pgadmin
|
|
networks:
|
|
- traefik-public
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.trading-card-games-pgadmin.rule=Host(`pgadmin.mtg.teddy.org.uk`)"
|
|
- "traefik.http.routers.trading-card-games-pgadmin.entrypoints=https"
|
|
- "traefik.http.routers.trading-card-games-pgadmin.tls=true"
|
|
- "traefik.http.routers.trading-card-games-pgadmin.tls.certresolver=le"
|
|
- "traefik.http.services.trading-card-games-pgadmin.loadbalancer.server.port=80"
|
|
- "traefik.http.routers.trading-card-games-pgadmin-http.rule=Host(`pgadmin.mtg.teddy.org.uk`)"
|
|
- "traefik.http.routers.trading-card-games-pgadmin-http.entrypoints=http"
|
|
- "traefik.http.routers.trading-card-games-pgadmin-http.middlewares=https-redirect@docker"
|
|
expose:
|
|
- "80"
|
|
|
|
volumes:
|
|
trading_card_games_pgadmin_data:
|
|
name: trading_card_games_pgadmin_data
|
|
|
|
networks:
|
|
traefik-public:
|
|
external: true |