Deploy a Gotify Alerter
Part of the Komodo Hub collection.
Deploys an Alerter that pushes to Gotify. Docker image built from foxxmd/komodo-utilities.
- A running Gotify instance (installation docs)
- A Gotify App token
[[stack]]
name = "gotify-alerter"
[stack.config]
repo = "foxxmd/deploy-gotify-alerter"
file_paths = [
"compose.yaml",
]
environment = """
## Required
# Your Gotify instance URL
GOTIFY_URL = https://gotify.example.com
# App Token created for Komodo
GOTIFY_APP_TOKEN = [[GOTIFY_APP_TOKEN]]
## Optional
# Need to add to `compose.yaml` as well
# Set the Gotify Priority level based on Komodo alert severity
#GOTIFY_OK_PRIORITY=3
#GOTIFY_WARNING_PRIORITY=5
#GOTIFY_CRITICAL_PRIORITY=8
# Set whether to include Komodo Severity Level in notification title
#LEVEL_IN_TITLE=true
# Prefixes messages with a checkmark when the Alert is in the 'Resolved' state
#INDICATE_RESOLVED=true
# Filter if an alert is pushed based on its Resolved status
# * leave unset to push all alerts
# * otherwise, alerts will only be pushed if Alert is one of the comma-separated states set here
#ALLOW_RESOLVED_TYPE=resolved,unresolved
## Delay alerts with below types for X milliseconds
## and cancel pushing alert if it is resolved within that time
#UNRESOLVED_TIMEOUT_TYPES=ServerCpu,ServerMem
#UNRESOLVED_TIMEOUT=2000
"""
[[variable]]
name = "GOTIFY_APP_TOKEN"
value = "AmgdtI-dyUgkiIn"
is_secret = true
[[alerter]]
name = "gotify"
[alerter.config]
enabled = true
endpoint.type = "Custom"
endpoint.params.url = "http://gotify-alerter-ip:7000"