blob: 9dfc85f2fc3dcc9e4f51ad477158a2cef41af1f8 [file] [log] [blame]
classes:
- service.grafana.support
parameters:
_param:
docker_grafana_replicas: 1
grafana_database_type: sqlite3
grafana_database_host: localhost
grafana_database_port: 3306
docker:
client:
stack:
dashboard:
version: '3.7'
service:
grafana:
deploy:
replicas: ${_param:docker_grafana_replicas}
restart_policy:
condition: any
image: ${_param:docker_image_grafana}
ports:
- 15013:3000
environment:
GF_DATABASE_TYPE: ${_param:grafana_database_type}
GF_DATABASE_NAME: grafana
GF_DATABASE_USER: grafana
GF_DATABASE_PASSWORD__FILE: /run/secrets/grafana-database
GF_DATABASE_HOST: "${_param:grafana_database_host}:${_param:grafana_database_port}"
GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana-admin
secrets:
- grafana-database
- grafana-admin
secrets:
grafana-database:
external: true
value: ${_param:grafana_database_password}
grafana-admin:
external: true
value: ${_param:grafana_admin_password}