blob: 9dfc85f2fc3dcc9e4f51ad477158a2cef41af1f8 [file] [log] [blame]
Simon Pasquier2c5a9692017-07-26 11:16:41 +02001classes:
2- service.grafana.support
Filip Pytloun7d6144a2017-04-13 13:36:45 +02003parameters:
Simon Pasquierf75425d2017-05-05 17:30:14 +02004 _param:
Martin Polreich67dff3b2017-06-13 14:06:22 +02005 docker_grafana_replicas: 1
Simon Pasquierf75425d2017-05-05 17:30:14 +02006 grafana_database_type: sqlite3
7 grafana_database_host: localhost
8 grafana_database_port: 3306
Filip Pytloun7d6144a2017-04-13 13:36:45 +02009 docker:
10 client:
11 stack:
12 dashboard:
Oleksii Molchanov2dded632020-07-28 23:34:03 +030013 version: '3.7'
Filip Pytloun7d6144a2017-04-13 13:36:45 +020014 service:
15 grafana:
16 deploy:
Simon Pasquierfe983e42017-05-09 15:52:29 +020017 replicas: ${_param:docker_grafana_replicas}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020018 restart_policy:
19 condition: any
20 image: ${_param:docker_image_grafana}
21 ports:
22 - 15013:3000
23 environment:
Simon Pasquierf75425d2017-05-05 17:30:14 +020024 GF_DATABASE_TYPE: ${_param:grafana_database_type}
25 GF_DATABASE_NAME: grafana
26 GF_DATABASE_USER: grafana
Oleksii Molchanov2dded632020-07-28 23:34:03 +030027 GF_DATABASE_PASSWORD__FILE: /run/secrets/grafana-database
Simon Pasquierf75425d2017-05-05 17:30:14 +020028 GF_DATABASE_HOST: "${_param:grafana_database_host}:${_param:grafana_database_port}"
Oleksii Molchanov2dded632020-07-28 23:34:03 +030029 GF_SECURITY_ADMIN_PASSWORD__FILE: /run/secrets/grafana-admin
30 secrets:
31 - grafana-database
32 - grafana-admin
33 secrets:
34 grafana-database:
35 external: true
36 value: ${_param:grafana_database_password}
37 grafana-admin:
38 external: true
39 value: ${_param:grafana_admin_password}
40
41