blob: e7667a23d2a2c6ce64ddd0a317914ad4a37f525a [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
Simon Pasquierf75425d2017-05-05 17:30:14 +02002 _param:
3 grafana_database_type: sqlite3
4 grafana_database_host: localhost
5 grafana_database_port: 3306
6 grafana_database_password: password
Filip Pytloun7d6144a2017-04-13 13:36:45 +02007 docker:
8 client:
9 stack:
10 dashboard:
11 service:
12 grafana:
13 deploy:
14 replicas: 1
15 restart_policy:
16 condition: any
17 image: ${_param:docker_image_grafana}
18 ports:
19 - 15013:3000
20 environment:
Simon Pasquierf75425d2017-05-05 17:30:14 +020021 GF_DATABASE_TYPE: ${_param:grafana_database_type}
22 GF_DATABASE_NAME: grafana
23 GF_DATABASE_USER: grafana
24 GF_DATABASE_PASSWORD: ${_param:grafana_database_password}
25 GF_DATABASE_HOST: "${_param:grafana_database_host}:${_param:grafana_database_port}"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020026 GF_SECURITY_ADMIN_PASSWORD: ${_param:grafana_admin_password}