Add Health Check to Container
Last updated
Last updated
The easiest way to add health checks to your docker containers is to update the Compose file, below you will find some examples. The Health Check needs to be added at the same indentation (how many 'TAB' keys) as your 'image', 'volume' and/or 'environment' lines, per below
One thing to note is that not all containers will need health checks. Health checks do require additional compute to do and it may be better using a cloud service (such as UptimeRobot) or an internally hosted service like UptimeKuma
Please read the code you are adding and ensure your variables match, otherwise you will have issues!
Time Required
5 Minutes
Difficulty
Low