32 lines
988 B
YAML
32 lines
988 B
YAML
version: "3.7"
|
|
|
|
networks:
|
|
proxy:
|
|
name: "proxy"
|
|
|
|
services:
|
|
traefik:
|
|
image: traefik:2.5
|
|
container_name: traefik
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./traefik.toml:/traefik.toml
|
|
- ./traefik_dynamic.toml:/traefik_dynamic.toml
|
|
- /DATA/docker/services/certs:/certs
|
|
environment:
|
|
TZ: Europe/Paris
|
|
# labels:
|
|
# traefik.http.routers.traefik-metrics.entrypoints: websecure
|
|
# traefik.http.routers.traefik-metrics.rule: "Host(`${SERVER_NAME}`) && PathPrefix(`/metrics`)"
|
|
# traefik.http.routers.traefik-metrics.service: traefik-metrics
|
|
# traefik.http.routers.traefik-metrics.middlewares: "traefik-metrics-auth@docker"
|
|
# traefik.http.middlewares.traefik-metrics-auth.basicauth.users: "${METRICS_AUTH}"
|
|
# traefik.http.services.traefik-metrics.loadbalancer.server.port: 8082
|
|
# traefik.enable: true
|
|
networks:
|
|
- proxy
|
|
restart: unless-stopped
|