Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 1 | classes: |
| 2 | - system.prometheus.alerta |
| 3 | parameters: |
| 4 | _param: |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 5 | alerta_mongodb_uri: "mongodb://${_param:cluster_node01_address}:27017,${_param:cluster_node02_address}:27017,${_param:cluster_node03_address}:27017/alerta?replicaSet=stacklight" |
| 6 | alerta_admin_username: "admin@alerta.io" |
| 7 | docker: |
| 8 | client: |
| 9 | stack: |
| 10 | monitoring: |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 11 | version: '3.7' |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 12 | service: |
| 13 | alerta: |
| 14 | networks: |
| 15 | - monitoring |
| 16 | deploy: |
| 17 | labels: |
| 18 | com.mirantis.monitoring: "alerta" |
| 19 | restart_policy: |
| 20 | condition: any |
| 21 | labels: |
| 22 | com.mirantis.monitoring: "alerta" |
| 23 | image: ${_param:docker_image_alerta} |
| 24 | ports: |
| 25 | - 15017:8080 |
| 26 | volumes: |
| 27 | - ${prometheus:alerta:config_dir}/alerta.conf:/web/config.js |
Ksawery Dziekoński | 28a14c4 | 2020-04-06 12:52:22 +0200 | [diff] [blame] | 28 | - ${prometheus:alerta:config_dir}/alertad.conf:/app/alertad.conf |
Dmitry Kalashnik | 554db63 | 2018-05-21 16:19:30 +0400 | [diff] [blame] | 29 | environment: |
| 30 | ADMIN_USERS: ${_param:alerta_admin_username} |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 31 | ADMIN_PASSWORD_FILE: "/run/secrets/alerta" |
Ksawery Dziekoński | 1fb2367 | 2020-10-02 13:25:39 +0200 | [diff] [blame^] | 32 | AUTH_REQUIRED: "True" |
Dmitry Kalashnik | 5dd3970 | 2018-07-09 18:03:37 +0400 | [diff] [blame] | 33 | MONGO_URI: ${_param:alerta_mongodb_uri} |
Ildar Svetlov | 59e09d5 | 2018-08-01 13:22:53 +0400 | [diff] [blame] | 34 | PLUGINS: "" |
Oleksii Molchanov | 2dded63 | 2020-07-28 23:34:03 +0300 | [diff] [blame] | 35 | secrets: |
| 36 | - alerta |
| 37 | secrets: |
| 38 | alerta: |
| 39 | external: true |
| 40 | value: ${_param:alerta_admin_password} |
| 41 | |