From 862eaaa87cb2a2863b98215401fe8bf009193052 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Thu, 10 Mar 2022 12:05:00 +0100 Subject: [PATCH] L2SS-685: Added docker image for alerta + backing postgres database --- docker-compose/alerta.yml | 36 +++++++++++++++++++ .../docs/source/interfaces/overview.rst | 2 ++ 2 files changed, 38 insertions(+) create mode 100644 docker-compose/alerta.yml diff --git a/docker-compose/alerta.yml b/docker-compose/alerta.yml new file mode 100644 index 000000000..488d22333 --- /dev/null +++ b/docker-compose/alerta.yml @@ -0,0 +1,36 @@ +version: '2.1' + +volumes: + alerta-postgres-data: {} + +services: + alerta-web: + image: alerta/alerta-web + container_name: alerta-web + networks: + - control + ports: + - "8081:8080" + depends_on: + - alerta-db + environment: + - DEBUG=1 # remove this line to turn DEBUG off + - DATABASE_URL=postgres://postgres:postgres@alerta-db:5432/monitoring + - AUTH_REQUIRED=True + - ADMIN_USERS=admin #default password: alerta + - ADMIN_KEY=demo-key + - PLUGINS=reject,blackout,normalise,enhance + restart: always + + alerta-db: + image: postgres + container_name: alerta-db + networks: + - control + volumes: + - alerta-postgres-data:/var/lib/postgresql/data + environment: + POSTGRES_DB: monitoring + POSTGRES_USER: postgres + POSTGRES_PASSWORD: postgres + restart: always diff --git a/tangostationcontrol/docs/source/interfaces/overview.rst b/tangostationcontrol/docs/source/interfaces/overview.rst index a00ab5710..e077c73dd 100644 --- a/tangostationcontrol/docs/source/interfaces/overview.rst +++ b/tangostationcontrol/docs/source/interfaces/overview.rst @@ -10,6 +10,8 @@ The station provides the following interfaces accessible through your browser (a +---------------------+---------+----------------------+-------------------+ | :doc:`monitoring` |Grafana |http://localhost:3000 |admin/admin | +---------------------+---------+----------------------+-------------------+ +| Alerting |Alerta |http://localhost:8081 |admin/alerta | ++---------------------+---------+----------------------+-------------------+ | :doc:`logs` |Kibana |http://localhost:5601 | | +---------------------+---------+----------------------+-------------------+ -- GitLab