Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 1 | parameters: |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 2 | _param: |
Martin Polreich | b8251fb | 2017-06-02 10:58:13 +0200 | [diff] [blame^] | 3 | docker_grafana_replicas: 3 |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 4 | grafana_database_type: sqlite3 |
| 5 | grafana_database_host: localhost |
| 6 | grafana_database_port: 3306 |
| 7 | grafana_database_password: password |
Martin Polreich | b8251fb | 2017-06-02 10:58:13 +0200 | [diff] [blame^] | 8 | grafana_session_directory: /data/sessions |
| 9 | grafana_session_life_time: 86400 |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 10 | docker: |
| 11 | client: |
| 12 | stack: |
| 13 | dashboard: |
| 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 |
Martin Polreich | b8251fb | 2017-06-02 10:58:13 +0200 | [diff] [blame^] | 23 | volumes: |
| 24 | /srv/glusterfs/grafana:${_param:grafana_session_directory} |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 25 | environment: |
Simon Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame] | 26 | 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 Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 31 | GF_SECURITY_ADMIN_PASSWORD: ${_param:grafana_admin_password} |
Martin Polreich | b8251fb | 2017-06-02 10:58:13 +0200 | [diff] [blame^] | 32 | GF_SESSION_PROVIDER: file |
| 33 | GF_SESSION_PROVIDER_CONFIG: ${_param:grafana_session_directory} |
| 34 | GF_SESSION_LIFE_TIME: ${_param:grafana_session_life_time} |