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: |
| 3 | grafana_database_type: sqlite3 |
| 4 | grafana_database_host: localhost |
| 5 | grafana_database_port: 3306 |
| 6 | grafana_database_password: password |
Filip Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 7 | 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 Pasquier | f75425d | 2017-05-05 17:30:14 +0200 | [diff] [blame^] | 21 | 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 Pytloun | 7d6144a | 2017-04-13 13:36:45 +0200 | [diff] [blame] | 26 | GF_SECURITY_ADMIN_PASSWORD: ${_param:grafana_admin_password} |