willfarrell / docker-autoheal

Monitor and restart unhealthy docker containers.
MIT License
1.31k stars 225 forks source link

feat: pass EXTERNAL_HOSTNAME to autoheal container for better container names in logs #121

Open tapiau opened 9 months ago

tapiau commented 9 months ago

I've found it super handy to get all the info about the Docker stack name and the host system's name. It's especially helpful when we've got multiple hosts running various stacks, especially with the autoheal feature in the mix.

With this patch, I can now shoot out restart messages to our Slack channel via a webhook, and I instantly know what went down and where it happened in our Docker setup. It's like magic, and it makes troubleshooting way easier!