Health Recovery
Unfortunately, Docker does not provide a built-in function to restart unhealthy containers.
This can be achieved by deploying the publicly available container willfarrell/autoheal beside the suSSHi Chef
container on the same host.
To do this, please add the following service to your compose.yaml:
compose.yaml
autoheal:
container_name: 'autoheal'
restart: always
image: willfarrell/autoheal
environment:
- AUTOHEAL_CONTAINER_LABEL=all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
Afterwards, start it up with docker compose up -d.