diff --git a/templates/maven/docker-compose.yml b/templates/maven/docker-compose.yml index 89bed062164264b34d986e603fe9a2b4c136d275..9a1fe45dd7f1f1b980dc26c2649a8e51d790b3d1 100644 --- a/templates/maven/docker-compose.yml +++ b/templates/maven/docker-compose.yml @@ -41,3 +41,21 @@ services: borgmatic: {{ docker_compose_borgmatic_service }} {% endif %} +{% if alerta_apikey is defined %} + + alerta: + image: 'registry.lakedrops.com/docker/alerta-proxy:1.0.1' + restart: unless-stopped + tty: true + environment: + - ALERTA_API_KEY={{ alerta_apikey }} +{% if alerta_environment is defined %} + - ALERTA_ENVIRONMENT={{ alerta_environment }} +{% endif %} +{% if alerta_project_id is defined %} + - ALERTA_PROJECT_ID={{ alerta_project_id }} +{% endif %} +{% if alerta_project_id is defined %} + - PORT={{ alerta_proxy_port }} +{% endif %} +{% endif %}