willfarrell / docker-autoheal

Monitor and restart unhealthy docker containers.
MIT License
1.35k stars 226 forks source link

ENHANCEMENT - Notifications #83

Open tamimology opened 2 years ago

tamimology commented 2 years ago

If there can be a pushover (and any other notifier platform) included in case of an unhealthy docker

fracai commented 2 years ago

PR available using Apprise

tamimology commented 2 years ago

How to add this? Env? I am not able to find it anywhere in autoheal

I know it should be pover://{user_key}@{token}, but how to pass it in the container?

fracai commented 2 years ago

If you're referring to my PR, you'd create an environment variable that points to the Apprise URL:

APPRISE_URL=https://apprise.host/notify/autoheal_key

apprise.host is wherever your Apprise installation can be reached and autoheal_key is the key you've configured in the Apprise interface. You'd put the pover://... configuration in that key configuration.