22 lines
485 B
YAML
22 lines
485 B
YAML
volumes:
|
|
config:
|
|
data:
|
|
|
|
networks:
|
|
traefik:
|
|
external: true
|
|
|
|
services:
|
|
prometheus:
|
|
image: prom/prometheus:${VERSION:?}
|
|
volumes:
|
|
- config:/etc/prometheus
|
|
- data:/prometheus
|
|
networks:
|
|
- traefik
|
|
labels:
|
|
- "traefik.http.routers.${ROUTER:-prometheus}.rule=Host(`${DOMAIN:-prom.local.krislamo.org}`)"
|
|
- "traefik.http.routers.${ROUTER:-prometheus}.entrypoints=web"
|
|
- "traefik.enable=true"
|
|
- "traefik.docker.network=traefik"
|