Simon Pasquier | 2c5a969 | 2017-07-26 11:16:41 +0200 | [diff] [blame] | 1 | classes: |
| 2 | - service.grafana.support |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 3 | parameters: |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 4 | _param: |
Martin Polreich | 67dff3b | 2017-06-13 14:06:22 +0200 | [diff] [blame] | 5 | docker_grafana_replicas: 1 |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 6 | grafana_database_type: sqlite3 |
| 7 | grafana_database_host: localhost |
| 8 | grafana_database_port: 3306 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 9 | docker: |
| 10 | client: |
| 11 | stack: |
| 12 | dashboard: |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 13 | version: '3.7' |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 14 | service: |
| 15 | grafana: |
| 16 | deploy: |
Simon Pasquier | fe983e4 | 2017-05-09 15:52:29 +0200 | [diff] [blame] | 17 | replicas: ${_param:docker_grafana_replicas} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 18 | restart_policy: |
| 19 | condition: any |
| 20 | image: ${_param:docker_image_grafana} |
| 21 | ports: |
| 22 | - 15013:3000 |
| 23 | environment: |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 24 | GF_DATABASE_TYPE: ${_param:grafana_database_type} |
| 25 | GF_DATABASE_NAME: grafana |
| 26 | GF_DATABASE_USER: grafana |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 27 | GF_DATABASE_PASSWORD__FILE: /run/secrets/grafana-database |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 28 | GF_DATABASE_HOST: "${_param:grafana_database_host}:${_param:grafana_database_port}" |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 29 | 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 | |