Sign inSign up

l33tlamer/docker-autoheal

By l33tlamer

•Updated almost 3 years ago

autoheal with additional notification providers.

Image
0

2.4K

l33tlamer/docker-autoheal repository overview

⁠docker-autoheal

⁠(Work-in-progress)

⁠This is a very basic fork of willfarrell/autoheal⁠.

  • Platforms: armv6, armv7, arm64 and amd64
  • Multiarch image, Docker should automatically pull the correct platform
  • Image is built using the latest version of autoheal, currently 1.2.0 (as of 14.11.2023)
  • Pull from the Docker Hub repo⁠ with docker pull docker.io/l33tlamer/docker-autoheal:latest

⁠The following has been added:

  • Support for Pushover⁠, ntfy⁠ and Gotify⁠ notifications.

  • In addition to the existing, these new environment variables can be used:

VariableDefaultExampleExplanation
PUSHOVER_USER_KEYnoneABCDYour User Key
PUSHOVER_APP_TOKENnone1234Your App Token
PUSHOVER_TITLEAutohealAutoheal @ Raspberry BasementMessage Title to be used
NTFY_URLnonehttp://192.168.20.50:8113/autohealFull URL to the ntfy instance, incl. the topic
NTFY_TOKENnoneABCDAuthorization Token
NTFY_TITLEAutohealAutoheal @ Raspberry BasementMessage Title to be used
NTFY_PRIORITYdefault5Priority of message (1-5, default=3, highest=5, lowest=1)
NTFY_TAGSrepeatrepeat,heavy_check_markTags/Emoji of message, comma-separated list
GOTIFY_URLnonehttp://192.168.20.50:8114/message?token=ABCDFull URL to the Gotify instance incl. token parameter
GOTIFY_TITLEAutohealAutoheal @ Raspberry BasementMessage Title to be used
GOTIFY_PRIORITYdefault2Priority of message (1-10, default=0, highest=10, lowest=1)

Refer to the official documentation of each notification provider for details on tokens, priorities, tags and more.

Example of a complete docker-compose.yml

version: "3.3"

services:
  autoheal:
    container_name: autoheal
    image: l33tlamer/docker-autoheal:latest
    restart: unless-stopped
    environment:
      - "AUTOHEAL_CONTAINER_LABEL=autoheal"
      - "AUTOHEAL_INTERVAL=10"
      - "AUTOHEAL_START_PERIOD=60"
      - "AUTOHEAL_DEFAULT_STOP_TIMEOUT=30"
      - "CURL_TIMEOUT=30"
      - "PUSHOVER_USER_KEY=abcd"
      - "PUSHOVER_APP_TOKEN=1234"
      - "PUSHOVER_TITLE=Autoheal @ Raspberry Basement"
      - "NTFY_URL=http://192.168.20.50:8113/autoheal"
      - "NTFY_TOKEN=ABCD"
      - "NTFY_TITLE=Autoheal @ Raspberry Basement"
      - "GOTIFY_URL=http://192.168.20.50:8114/message?token=ABCD"
      - "GOTIFY_TITLE=Autoheal @ Raspberry Basement"
      - "GOTIFY_PRIORITY=2"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - /etc/localtime:/etc/localtime:ro

Tag summary

Content type

Image

Digest

sha256:a075f2729…

Size

6 MB

Last updated

almost 3 years ago

docker pull l33tlamer/docker-autoheal