Files
custom-portainer-configurat…/templates/autoheal/docker-compose.yml

17 lines
468 B
YAML

services:
autoheal:
deploy:
replicas: 1
environment:
- AUTOHEAL_CONTAINER_LABEL=all
- AUTOHEAL_ONLY_MONITOR_RUNNING=false
- AUTOHEAL_DEFAULT_STOP_TIMEOUT=30
- AUTOHEAL_START_PERIOD=0
- AUTOHEAL_INTERVAL=180
image: willfarrell/autoheal:latest
network_mode: none
restart: always
container_name: auto-heal
volumes:
- /etc/localtime:/etc/localtime:ro
- /var/run/docker.sock:/var/run/docker.sock