Files
KazV2/dockers/grafana/docker-compose.yml
T
fab 18ad003a69 upgrade grafana
suppr les tags latest et mise en place du pinning
2026-09-05 09:40:35 +02:00

53 lines
1.6 KiB
YAML

services:
prometheus:
image: prom/prometheus:v3.14.0
restart: unless-stopped
container_name: ${prometheusServName}
volumes:
- ./prometheus/:/etc/prometheus/
- prometheus:/prometheus
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
command:
- "--config.file=/etc/prometheus/prometheus.yml"
- "--storage.tsdb.path=/prometheus"
- "--web.console.libraries=/usr/share/prometheus/console_libraries"
- "--web.console.templates=/usr/share/prometheus/consoles"
networks:
- traefikNet
grafana:
image: grafana/grafana:13.2.1
restart: unless-stopped
container_name: ${grafanaServName}
volumes:
- grafana:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
env_file:
- grafana.env
depends_on:
- prometheus
networks:
- traefikNet
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana-secure.entrypoints=websecure"
- "traefik.http.middlewares.grafana-stripprefix.stripprefix.prefixes=/grafana"
- "traefik.http.routers.grafana-secure.rule=Host(`grafana.${domain}`)"
- "traefik.http.routers.grafana-secure.service=grafana"
- "traefik.http.routers.grafana-secure.middlewares=grafana-stripprefix,test-adminipallowlist@file,traefik-auth"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
- "traefik.docker.network=traefikNet"
networks:
traefikNet:
external: true
name: traefikNet
volumes:
prometheus:
grafana: