Simple docker autoheal with email notifications
770
Simple docker autoheal with email notifications
In additional to restart unhealthy containers, it allow you to receive email notifications about
Available on dockerhub: limebeck/docker-autoheal
Don't forget to add volume with docker socket.
Usually like this: -v /var/run/docker.sock:/var/run/docker.sock
Add to your containers labels:
failure_notify=true/false - enable/disable notifications on container[email protected] - specify email for containerfailure_notify_timeout=n - period between notifications, minutesfailure_cmd=/command.sh - any command, run in container just before restartYou can send test email with command docker exec <container_name> python ./test_mail.py [email protected]
autoheal)Clone repository and run docker build -t limebeck/docker-autoheal:latest -f Dockerfile .
Run test container and docker-autoheal service:
.env.example to .env and change to your valuesdocker-compose upContent type
Image
Digest
Size
39.2 MB
Last updated
over 5 years ago
docker pull limebeck/docker-autoheal