Closed pyrooka closed 1 week ago
@pyrooka what if the user doesn't want to run Analytics?
Ahh, you're right I missed that part. I've thought about this a little and I'm gonna close this PR, because there is no other "easy" and reliable solution I can think of. As a workaround I'll configure Uptime Kuma to watch the analyitics server, that should be good enough. Thanks for taking a look though!
Description
This PR adds a small improvement to the container, which utilises the Docker
HEALTHCHECK
command to report the inner state of the app to the Docker runtime. Basically, it runs thecurl
command periodically to check whether the webserver is up or not.Motivation: I left a typo in my
run.py
file that I didn't notice and restarted the host around an hour later. That small issue led to a restart loop, but my Portainer instance reportedRunning
- which in fact was true. I think if it would've had this health check, I could see the problem on the UI.Type of change
How Has This Been Tested?
I started a local container with the example
run.py
and when I inspected it, I could see the error logs:Running the same health check command in my "prod" container, returned exit code 0 which means everything is fine.
Checklist: