gotify
自建推送服务
Gotify
Tip
如果要有IOS推送的话需要部署iGotify
docker-compose.yml
alertmanager_gotify_bridge
将 Alertmanager webhook 转换为 Gotify 消息格式
gotify-bridge
自建推送服务
如果要有IOS推送的话需要部署iGotify
---
services:
gotify:
image: gotify/server
restart: unless-stopped
networks:
- net
ports:
- "8680:80"
environment:
GOTIFY_DEFAULTUSER_PASS: 'admin'
GOTIFY_SERVER_PORT: 8680
TZ: "Asia/Shanghai"
volumes:
- ./data:/app/data
igotify:
container_name: igotify
hostname: igotify
image: ghcr.io/androidseb25/igotify-notification-assist:latest
restart: unless-stopped
security_opt:
- no-new-privileges:true
pull_policy: always
networks:
- net
ports:
- "8681:8080"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8080/Version" ]
interval: "3s"
timeout: "3s"
retries: 5
volumes:
- ./igotify-data:/app/data
networks:
net:
将 Alertmanager webhook 转换为 Gotify 消息格式
#!/bin/bash
docker rm -f gotify-bridge
docker run -d \
--name gotify-bridge \
--network host \
-e GOTIFY_ENDPOINT="http://127.0.0.1:8680/message" \
-e GOTIFY_TOKEN="xxx" \
-e PORT=8081 \
ghcr.io/druggeri/alertmanager_gotify_bridge:latest