
The most recent version of the grafana-oss:latest container seems to be a beta version with some issues, or maybe we need to adapt our deployment. Until we do this, pin the container to the latest known working version. Change-Id: Id50bf3121f3009f36f0f9961cf5211053410a576
21 lines
758 B
Django/Jinja
21 lines
758 B
Django/Jinja
# Version 2 is the latest that is supported by docker-compose in
|
|
# Ubuntu Xenial.
|
|
version: '2'
|
|
|
|
services:
|
|
grafana:
|
|
restart: always
|
|
image: docker.io/grafana/grafana-oss:9.0.4
|
|
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
|