blob: 65814b95169bd04cb771190b789e84a58babd76c [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
Simon Pasquierf75425d2017-05-05 17:30:14 +02002 _param:
Martin Polreichb8251fb2017-06-02 10:58:13 +02003 docker_grafana_replicas: 3
Simon Pasquierf75425d2017-05-05 17:30:14 +02004 grafana_database_type: sqlite3
5 grafana_database_host: localhost
6 grafana_database_port: 3306
7 grafana_database_password: password
Martin Polreichb8251fb2017-06-02 10:58:13 +02008 grafana_session_directory: /data/sessions
9 grafana_session_life_time: 86400
Filip Pytloun7d6144a2017-04-13 13:36:45 +020010 docker:
11 client:
12 stack:
13 dashboard:
14 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
Martin Polreichb8251fb2017-06-02 10:58:13 +020023 volumes:
24 /srv/glusterfs/grafana:${_param:grafana_session_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020025 environment:
Simon Pasquierf75425d2017-05-05 17:30:14 +020026 GF_DATABASE_TYPE: ${_param:grafana_database_type}
27 GF_DATABASE_NAME: grafana
28 GF_DATABASE_USER: grafana
29 GF_DATABASE_PASSWORD: ${_param:grafana_database_password}
30 GF_DATABASE_HOST: "${_param:grafana_database_host}:${_param:grafana_database_port}"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020031 GF_SECURITY_ADMIN_PASSWORD: ${_param:grafana_admin_password}
Martin Polreichb8251fb2017-06-02 10:58:13 +020032 GF_SESSION_PROVIDER: file
33 GF_SESSION_PROVIDER_CONFIG: ${_param:grafana_session_directory}
34 GF_SESSION_LIFE_TIME: ${_param:grafana_session_life_time}