system-config/playbooks/roles/grafana/templates/docker-compose.yaml.j2
Jeremy Stanley 5921ce487b Temporarily pin Grafana to 10.2.2
Switch from the "latest" grafana-oss image to 10.2.2 for now due to
provider-specific Nodepool dashboards coming up "no data" after
upgrading. We can revert this once the cause has been addressed.

Change-Id: Ic13b12212e6063231de5f993fe01ca9e641555f7
2023-12-31 19:15:56 +00:00

22 lines
832 B
Django/Jinja

# Version 2 is the latest that is supported by docker-compose in
# Ubuntu Xenial.
version: '2'
services:
grafana:
restart: always
# Temporarily pin to 10.2.2 instead of latest due to selector errors
image: docker.io/grafana/grafana-oss:10.2.2
network_mode: host
environment:
GF_SERVER_DOMAIN: 'grafana.opendev.org'
GF_SECURITY_ADMIN_PASSWORD__FILE: '/etc/grafana/secrets/admin_password'
GF_SECURITY_ADMIN_USER__FILE: '/etc/grafana/secrets/admin_user'
GF_SECURITY_SECRET_KEY__FILE: '/etc/grafana/secrets/secret_key'
GF_AUTH_ANONYMOUS_ENABLED: 'true'
GF_USERS_ALLOW_SIGN_UP: 'false'
GF_DASHBOARDS_DEFAULT_HOME_DASHBOARD_PATH: '/etc/grafana/home/home.json'
volumes:
- /etc/grafana/secrets:/etc/grafana/secrets:ro
- /etc/grafana/home:/etc/grafana/home:ro