diff --git a/roles/dawarich/templates/docker-compose.yml.j2 b/roles/dawarich/templates/docker-compose.yml.j2 index d7f0092..052b722 100644 --- a/roles/dawarich/templates/docker-compose.yml.j2 +++ b/roles/dawarich/templates/docker-compose.yml.j2 @@ -160,6 +160,20 @@ services: OTP_ENCRYPTION_KEY_DERIVATION_SALT: "{{ dawarich_otp_salt }}" BACKGROUND_PROCESSING_CONCURRENCY: "{{ dawarich_sidekiq_concurrency }}" + # autoheal — restarts any container that goes unhealthy (fleet ops-sidecar standard) + autoheal: + image: willfarrell/autoheal:latest + container_name: autoheal + restart: unless-stopped + environment: + - AUTOHEAL_CONTAINER_LABEL=all + - AUTOHEAL_INTERVAL=15 + - AUTOHEAL_START_PERIOD=60 + - AUTOHEAL_DEFAULT_STOP_TIMEOUT=30 + - TZ=America/Toronto + volumes: + - /var/run/docker.sock:/var/run/docker.sock + watchtower: container_name: dawarich_watchtower image: ghcr.io/nicholas-fedor/watchtower:latest