-
Notifications
You must be signed in to change notification settings - Fork 97
Howto: Container Health Monitoring
Jeffrey Boehm edited this page Sep 5, 2019
·
1 revision
Autoheal is a Docker image that automatically restarts containers that are marked unhealthy. docker-mailserver tests itself regulary by using the healthcheck feature of Docker. When a test fails, the container state changes to unhealthy.
You can integrate autoheal into your setup by uncommenting the autoheal
service definition in docker-compose.yml
.
autoheal:
image: willfarrell/autoheal:latest
restart: always
networks: []
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
- AUTOHEAL_CONTAINER_LABEL=de.ressourcenkonflikt.docker-mailserver.autoheal