From 060cfda4a39d51677f4cc8feedaa933bff446019 Mon Sep 17 00:00:00 2001 From: Jens Beckmann Date: Sat, 11 Jul 2026 17:51:48 +0000 Subject: [PATCH] =?UTF-8?q?docker-compose.yaml=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 docker-compose.yaml diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..e137f80 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,25 @@ +version: "3.8" + +services: + grafana: + image: grafana/grafana:latest + container_name: grafana + ports: + - "3000:3000" + volumes: + - /mnt/docker/grafana:/var/lib/grafana + environment: + - GF_SERVER_ROOT_URL=http://:3000 + # --- Keycloak / OAuth Konfiguration --- + - GF_AUTH_GENERIC_OAUTH_ENABLED=true + - GF_AUTH_GENERIC_OAUTH_NAME=Keycloak + - GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP=true + - GF_AUTH_GENERIC_OAUTH_CLIENT_ID=grafana + - GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET=DEIN_KOPIERTER_SECRET_AUS_KEYCLOAK + # Die URLs hängen von deiner Keycloak-Version ab (meistens /auth/ oder direkt /realms/) + - GF_AUTH_GENERIC_OAUTH_AUTH_URL=http://:8080/realms//protocol/openid-connect/auth + - GF_AUTH_GENERIC_OAUTH_TOKEN_URL=http://:8080/realms//protocol/openid-connect/token + - GF_AUTH_GENERIC_OAUTH_API_URL=http://:8080/realms//protocol/openid-connect/userinfo + # Mapping: Welches Keycloak-Feld wird als Name/Email in Grafana genutzt? + - GF_AUTH_GENERIC_OAUTH_SCOPE=openid profile email + restart: unless-stopped \ No newline at end of file