services/prometheus/docker-compose.traefik.yml

15 lines
424 B
YAML
Raw Normal View History

2021-12-29 15:13:42 +01:00
---
networks:
default:
name: ${TRAEFIK_NETWORK_NAME:-traefik}
external: true
2021-12-29 15:13:42 +01:00
services:
prometheus:
labels:
- traefik.enable=true
- traefik.docker.network=${TRAEFIK_NETWORK_NAME:-traefik}
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-prometheus}.rule=Host(`${PROMETHEUS_DOMAIN:?err}`)
- traefik.http.routers.${TRAEFIK_ROUTER_NAME:-prometheus}.entrypoints=${TRAEFIK_ENTRYPOINTS:-web}