new: add Grafana

This commit is contained in:
2024-06-08 21:56:04 +00:00
parent 26bab08ea0
commit 83cff7450a
2 changed files with 27 additions and 0 deletions

1
grafana/.env.example Normal file
View File

@@ -0,0 +1 @@
# https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/#override-configuration-with-environment-variables

26
grafana/compose.yml Normal file
View File

@@ -0,0 +1,26 @@
services:
grafana:
container_name: grafana
image: grafana/grafana
user: 0:0 # Rootless Podman
env_file: .env
restart: unless-stopped
volumes:
- ./appdata:/var/lib/grafana
networks:
- dmz
- monitoring
labels:
# Caddy
caddy: "*.{$$INT_DOMAIN}"
caddy.1_@grafana: host grafana.{$$INT_DOMAIN}
caddy.1_handle: "@grafana"
caddy.1_handle.reverse_proxy: "{{upstreams 3000}}"
# Diun
diun.enable: true
networks:
dmz:
external: true
monitoring:
external: true