add autoheal

This commit is contained in:
tijsg
2025-10-22 20:29:38 +02:00
parent 0e863844fd
commit f47626a7f3

View File

@@ -325,6 +325,7 @@ services:
restart: unless-stopped
labels:
- com.centurylinklabs.watchtower.enable=true
- autoheal=true
############################
# WATCHTOWER (automatic updates)
@@ -341,3 +342,18 @@ services:
- WATCHTOWER_NO_STARTUP_MESSAGE=true
- WATCHTOWER_LABEL_ENABLE=true
restart: unless-stopped
############################
# AUTOHEAL (restart unhealthy containers)
############################
autoheal:
image: willfarrell/autoheal:latest
container_name: autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=autoheal
- AUTOHEAL_INTERVAL=30
- AUTOHEAL_START_PERIOD=300
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=30
volumes:
- /var/run/docker.sock:/var/run/docker.sock
restart: unless-stopped