From c43230ee3244af2c8b395f8ac8d15c479b7f4899 Mon Sep 17 00:00:00 2001 From: mathieu Date: Fri, 21 Jun 2024 17:39:36 +0200 Subject: [PATCH] grafana --- grafana/docker-compose.yml | 12 ++++++++++++ traefik/rules.yaml | 11 ++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 grafana/docker-compose.yml diff --git a/grafana/docker-compose.yml b/grafana/docker-compose.yml new file mode 100644 index 0000000..338a04d --- /dev/null +++ b/grafana/docker-compose.yml @@ -0,0 +1,12 @@ +version: "3.8" +services: + grafana: + image: grafana/grafana-enterprise + container_name: grafana + restart: unless-stopped + ports: + - '8086:3000' + volumes: + - grafana-storage:/var/lib/grafana +volumes: + grafana-storage: {} \ No newline at end of file diff --git a/traefik/rules.yaml b/traefik/rules.yaml index 89b659c..dd3bf54 100644 --- a/traefik/rules.yaml +++ b/traefik/rules.yaml @@ -76,6 +76,11 @@ http: service: "service-flaresolverr" tls: certResolver: myresolver + router-grafana: + rule: "Host(`grafana.huguette.ovh`)" + service: "service-grafana" + tls: + certResolver: myresolver services: service-dsm: @@ -138,7 +143,11 @@ http: passHostHeader: true servers: - url: "http://192.168.1.100:8191" - + service-grafana: + loadBalancer: + passHostHeader: true + servers: + - url: "http://192.168.1.100:8086" middlewares: replacepathregex-nas: