add autoheal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user