system-config/playbooks/roles/grafana/templates/docker-compose.yaml.j2
Ian Wienand 9c17f9f7f0 grafana: update to oss latest release
It seems the images have split into enterprise and oss releases.  The
OSS release is the one we want.

Since If0d584f848f213aeea385885e3decfaee6303de5 we don't run anything
in the container.  So we can switch to the upstream default of the
Alpine-based container, which is their reccommendation.

Just use the :latest tag.  Generally the API seems pretty stable.  If
we do break, it's better to figure it out quickly rather than pin to
an old version and then have to make huge jumps.

Depends-On: https://review.opendev.org/c/opendev/grafyaml/+/825990
Change-Id: I312a141baf73d750591957197cb5ba829f503fcb
2022-01-24 12:52:06 +11:00

18 lines
584 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:latest
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