From a27fa624fc8e3361db1b7bd6e88feab21978b3f1 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Fri, 29 Jul 2022 14:08:18 +0200
Subject: [PATCH] Add alerta service to maven apps

---
 templates/maven/docker-compose.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/templates/maven/docker-compose.yml b/templates/maven/docker-compose.yml
index 89bed06..9a1fe45 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 %}
-- 
GitLab