blob: bec608c7e1b4bbdd97146e8c4c602180a4bf7619 [file] [log] [blame]
classes:
- system.prometheus.alerta
parameters:
_param:
alerta_mongodb_uri: "mongodb://${_param:cluster_node01_address}:27017,${_param:cluster_node02_address}:27017,${_param:cluster_node03_address}:27017/alerta?replicaSet=stacklight"
alerta_admin_username: "admin@alerta.io"
docker:
client:
stack:
monitoring:
version: '3.7'
service:
alerta:
networks:
- monitoring
deploy:
labels:
com.mirantis.monitoring: "alerta"
restart_policy:
condition: any
labels:
com.mirantis.monitoring: "alerta"
image: ${_param:docker_image_alerta}
ports:
- 15017:8080
volumes:
- ${prometheus:alerta:config_dir}/alerta.conf:/web/config.js
- ${prometheus:alerta:config_dir}/alertad.conf:/app/alertad.conf
environment:
ADMIN_KEY: ${_param:alerta_admin_key}
ADMIN_USERS: ${_param:alerta_admin_username}
ADMIN_PASSWORD_FILE: "/run/secrets/alerta"
AUTH_REQUIRED: "True"
MONGO_URI: ${_param:alerta_mongodb_uri}
PLUGINS: ""
secrets:
- alerta
secrets:
alerta:
external: true
value: ${_param:alerta_admin_password}