Healthcheck Option
jwillmer opened this issue · comments
Is there a possibility to use healthchecks like:
healthcheck:
test: wget --spider http://localhost || exit 1
interval: "30s"
timeout: "5s"
retries: 3
start_period: "15s"
I used pgrep -fx 'python3 -u /usr/sbin/cloudflare-companion' || false
for the test to make sure that the process running the particular python script is actually running. Seems like a pretty decent healthcheck. The only thing that I can say is that maybe it's a little too specific to where if the location or name of the script changes it would ruin the healthcheck. But I personally wanted it that way just to make sure that I don't pick up like a bash script with a similar name or another python script or something.