vladkens / ghstats

🤩📈 Self-hosted dashboard for tracking GitHub repos traffic history longer than 14 days.
MIT License
126 stars 2 forks source link

[Feature Request] - Docker Healthcheck #7

Closed modem7 closed 2 months ago

modem7 commented 2 months ago

To make sure the container is running properly/has failure handling via the Docker healthcheck, I propose a app specific docker healthcheck so we can do the aforementioned.

e.g. https://github.com/samuelba/healthcheck or https://github.com/cloudlena/healthcheck

Maybe check that the page loads with the right content (e.g. a curl check may show that the webserver is up and responding, but that doesn't necessarily mean the page has the expected content), and maybe checks that the latest cron job has pulled the stats correctly (e.g. in case of a network issue due to user or wider error or token error)

vladkens commented 2 months ago

Hi, @modem7. Released in v0.3.0