AlertManager to Gotify bridge
Find a file
2020-10-13 15:44:31 +01:00
.dockerignore Initial commit 2020-10-13 09:19:35 +01:00
.gitignore Initial commit 2020-10-13 09:19:35 +01:00
alertify.py Update to first fully working version. 2020-10-13 15:31:33 +01:00
Dockerfile Run as non-root user 2020-10-13 15:44:31 +01:00
README.md Run as non-root user 2020-10-13 15:44:31 +01:00
requirements.txt Update to first fully working version. 2020-10-13 15:31:33 +01:00

This application bridges Alertmanager alerts to Gotify.

Notes

  • Listens on port 8080 by default.
  • Forwards resolved alerts, if sent.
  • Defaults, if not sent:
    Field Default value
    Priority 5
    Description ...
    Severity Default

Docker

Build

docker build . -t 'alertify:latest'

Run

e.g.

docker run --name alertify -p 8080:8080 -e TZ=Europe/London -e GOTIFY_KEY=XXXXXXXX -e GOTIFY_SERVER=gotify -e GOTIFY_PORT=80 alertify:latest

Compose:

---
version: "2"
services:
  gotify:
    image: gotify/server:latest
    container_name: gotify
    environment:
      - TZ=Europe/London
    volumes:
      - config/config.yml:/etc/gotify/config.yml
      - data:/app/data
    restart: unless-stopped

  alertify:
    image: alertify:latest
    container_name: alertify
    ports:
      - "8080:8080"
    environment:
      - TZ=Europe/London
      - GOTIFY_KEY=XXXXXXXXXXXX
      - GOTIFY_SERVER=gotify
      - GOTIFY_PORT=80
    restart: unless-stopped