blob: bec608c7e1b4bbdd97146e8c4c602180a4bf7619 [file] [log] [blame]
Dmitry Kalashnik554db632018-05-21 16:19:30 +04001classes:
2- system.prometheus.alerta
3parameters:
4 _param:
Dmitry Kalashnik554db632018-05-21 16:19:30 +04005 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 Molchanov2dded632020-07-28 23:34:03 +030011 version: '3.7'
Dmitry Kalashnik554db632018-05-21 16:19:30 +040012 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ński28a14c42020-04-06 12:52:22 +020028 - ${prometheus:alerta:config_dir}/alertad.conf:/app/alertad.conf
Dmitry Kalashnik554db632018-05-21 16:19:30 +040029 environment:
Ksawery Dziekońskicc12a442020-11-30 17:58:35 +010030 ADMIN_KEY: ${_param:alerta_admin_key}
Dmitry Kalashnik554db632018-05-21 16:19:30 +040031 ADMIN_USERS: ${_param:alerta_admin_username}
Oleksii Molchanov2dded632020-07-28 23:34:03 +030032 ADMIN_PASSWORD_FILE: "/run/secrets/alerta"
Ksawery Dziekoński1fb23672020-10-02 13:25:39 +020033 AUTH_REQUIRED: "True"
Dmitry Kalashnik5dd39702018-07-09 18:03:37 +040034 MONGO_URI: ${_param:alerta_mongodb_uri}
Ildar Svetlov59e09d52018-08-01 13:22:53 +040035 PLUGINS: ""
Oleksii Molchanov2dded632020-07-28 23:34:03 +030036 secrets:
37 - alerta
38 secrets:
39 alerta:
40 external: true
41 value: ${_param:alerta_admin_password}
42