blob: d3f0391babe7310be6ffb72ca4c6ff842f916c4b [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
Simon Pasquierf75425d2017-05-05 17:30:14 +02002 _param:
Martin Polreich67dff3b2017-06-13 14:06:22 +02003 docker_grafana_replicas: 1
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 Polreich67dff3b2017-06-13 14:06:22 +02008 grafana_data_directory: /var/lib/grafana
Martin Polreichb8251fb2017-06-02 10:58:13 +02009 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:
Martin Polreich67dff3b2017-06-13 14:06:22 +020024 - /srv/volumes/grafana:${_param:grafana_data_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}"
Martin Polreich67dff3b2017-06-13 14:06:22 +020031 GF_PATHS_DATA: ${_param:grafana_data_directory}
Filip Pytloun7d6144a2017-04-13 13:36:45 +020032 GF_SECURITY_ADMIN_PASSWORD: ${_param:grafana_admin_password}
Martin Polreichb8251fb2017-06-02 10:58:13 +020033 GF_SESSION_PROVIDER: file
Martin Polreich67dff3b2017-06-13 14:06:22 +020034 GF_SESSION_PROVIDER_CONFIG: ${_param:grafana_data_directory}/data/sessions
35 GF_SESSION_LIFE_TIME: ${_param:grafana_session_life_time}