Files
app-catalog-felhom.eu/templates/grafana/docker-compose.yml
T
admin 7b0071e92b
gates / gates (push) Successful in 39s
Security updates batch 2 (felhom.eu R-1306): security_fix steps n8n 2.44.7, privatebin 2.1.0, docmost 0.97.0, grafana 13.2.4 + bookstack 26.09.2 normal step
On the operator's yes at the batch-2 STOP (2026-10-27). Each step proven on scratch 9202 by box_walk.py --security
(bookstack: bench 9401 + box). Evidence: felhom.eu documentation/audits/security-app-updates-2026-10-27/.
2026-10-27 15:38:22 +01:00

48 lines
1.5 KiB
YAML

# Grafana - Professzionális monitoring és vizualizációs platform
# Domain: ${SUBDOMAIN}.${DOMAIN}
# Database: None (file-based)
# RAM: ~100M (mem_limit: 768M) | Pi-compatible: Yes
# 512M -> 768M (R-994, 2026-10-17: the 2026-10-13 sizing run measured a peak of 435 MB = 85 % of the old 512M; the new limit keeps it at or under ~70 %).
#
# Environment variables:
# DOMAIN - Your domain (e.g., demo-felhom.eu)
# GF_SECURITY_ADMIN_PASSWORD- Admin jelszó (auto-generated)
services:
grafana:
image: grafana/grafana:13.2.4
container_name: grafana
restart: unless-stopped
environment:
- TZ=Europe/Budapest
- GF_SERVER_ROOT_URL=https://${SUBDOMAIN}.${DOMAIN}
- GF_SECURITY_ADMIN_PASSWORD=${GF_SECURITY_ADMIN_PASSWORD:?the admin password is required (R-708)}
volumes:
- grafana_data:/var/lib/grafana
networks:
- traefik-public
deploy:
resources:
limits:
memory: 768M
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://127.0.0.1:3000/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 30s
labels:
- "traefik.enable=true"
- "traefik.http.routers.grafana.rule=Host(`${SUBDOMAIN}.${DOMAIN}`)"
- "traefik.http.routers.grafana.entrypoints=websecure"
- "traefik.http.routers.grafana.tls=true"
- "traefik.http.routers.grafana.tls.certresolver=letsencrypt"
- "traefik.http.services.grafana.loadbalancer.server.port=3000"
volumes:
grafana_data:
networks:
traefik-public:
external: true