2021-02-07 14:10:52 +01:00
|
|
|
version: "3.7"
|
2020-08-07 15:54:17 +02:00
|
|
|
|
2020-09-04 14:47:29 +02:00
|
|
|
networks:
|
|
|
|
proxy:
|
2021-02-07 14:10:52 +01:00
|
|
|
name: "proxy"
|
2020-09-04 14:47:29 +02:00
|
|
|
|
2020-08-07 15:54:17 +02:00
|
|
|
services:
|
|
|
|
traefik:
|
2021-12-19 17:04:58 +01:00
|
|
|
image: traefik:2.5
|
2020-09-04 12:47:16 +02:00
|
|
|
container_name: traefik
|
|
|
|
ports:
|
|
|
|
- 80:80
|
|
|
|
- 443:443
|
|
|
|
volumes:
|
|
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
|
|
- ./traefik.toml:/traefik.toml
|
|
|
|
- ./traefik_dynamic.toml:/traefik_dynamic.toml
|
|
|
|
- /DATA/docker/traefik/certs:/certs
|
2021-02-07 14:10:52 +01:00
|
|
|
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
|
2020-09-04 14:47:29 +02:00
|
|
|
networks:
|
|
|
|
- proxy
|
2020-09-04 12:47:16 +02:00
|
|
|
restart: unless-stopped
|