From 031aab3a87191c1868358d7f9c8351fd6070e948 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Tue, 29 Mar 2022 17:16:40 +0200
Subject: [PATCH] L2SS-685: Explicitly provide alerta configuration files

---
 docker-compose/alerta-web/Dockerfile   | 5 +++++
 docker-compose/alerta-web/alerta.conf  | 7 +++++++
 docker-compose/alerta-web/alertad.conf | 4 ++++
 docker-compose/alerta-web/config.json  | 1 +
 4 files changed, 17 insertions(+)
 create mode 100644 docker-compose/alerta-web/alerta.conf
 create mode 100644 docker-compose/alerta-web/alertad.conf
 create mode 100644 docker-compose/alerta-web/config.json

diff --git a/docker-compose/alerta-web/Dockerfile b/docker-compose/alerta-web/Dockerfile
index 8a1845a7a..090c14354 100644
--- a/docker-compose/alerta-web/Dockerfile
+++ b/docker-compose/alerta-web/Dockerfile
@@ -1,3 +1,8 @@
 FROM alerta/alerta-web
 
+COPY alertad.conf /app/alertad.conf
+COPY alerta.conf /app/alerta.conf
+COPY config.json /web/config.json
+
 RUN pip install git+https://github.com/alerta/alerta-contrib.git#subdirectory=plugins/slack
+
diff --git a/docker-compose/alerta-web/alerta.conf b/docker-compose/alerta-web/alerta.conf
new file mode 100644
index 000000000..64c8ec701
--- /dev/null
+++ b/docker-compose/alerta-web/alerta.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+sslverify = no
+output = presto
+endpoint = http://localhost:8080/api
+timezone = Europe/London
+key = NpzX0z_fX8TVKZtXpzop-pi2MhaGnLawKVqbJBoA
+debug = yes
diff --git a/docker-compose/alerta-web/alertad.conf b/docker-compose/alerta-web/alertad.conf
new file mode 100644
index 000000000..96c259940
--- /dev/null
+++ b/docker-compose/alerta-web/alertad.conf
@@ -0,0 +1,4 @@
+DEBUG = True
+SECRET = "T=&7xvF2S&x7w_JAcq$h1x5ocfA)8H2i"
+
+PLUGINS = ['reject', 'blackout', 'normalise', 'enhance', 'slack']
diff --git a/docker-compose/alerta-web/config.json b/docker-compose/alerta-web/config.json
new file mode 100644
index 000000000..004ae8e0a
--- /dev/null
+++ b/docker-compose/alerta-web/config.json
@@ -0,0 +1 @@
+{"endpoint": "/api"}
-- 
GitLab