# Version 2 is the latest that is supported by docker-compose in # Ubuntu Xenial. version: '2' services: grafana: restart: always image: docker.io/opendevorg/grafana 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: - /opt/project-config:/opt/project-config - /etc/grafana/secrets:/etc/grafana/secrets