
Instead of building a local grafana image with grafyaml installed, use the plain upstream grafana image along with the newly created separate opendev grafyaml image to run the dashboards. Depends-On: https://review.opendev.org/780119 Change-Id: If0d584f848f213aeea385885e3decfaee6303de5
18 lines
586 B
Django/Jinja
18 lines
586 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:7.4.2-ubuntu
|
|
network_mode: host
|
|
environment:
|
|
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'
|
|
volumes:
|
|
- /etc/grafana/secrets:/etc/grafana/secrets
|