-
-
Notifications
You must be signed in to change notification settings - Fork 142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] Adding Healthchecks do the dockerfiles #326
Comments
@wuast94 Makes sense. You can define the healthchecks manually from the compose file as well btw. |
yeah i know, the thing is on the worker part i dont even know how to define the healthcheck. on the web part it should be an extra endpoint that just return a json or something like that if the web part and all sub parts are working as intended (redis db and so on), its more efficient than just checking a rendered html page. |
@wuast94 makes sense. The good news is that the worker container is going away in the next release. For the web container, I can add a dummy ping endpoint. |
well than it can be a thing i can do maybe. im in the beginning of development (atm im building a web app with svelte), but an healtheck endpoint seams like a nice thing to do for learning 😊 |
@wuast94 Sure! Hoarder uses Next.js. You can drop a |
yeah sounds like a nice starting point. if i can i will also return if the redis and db connection are ok 😊 |
Redis is going away, and the db is sqlite db, so it's usually always ok :) |
my bad i meaned meilisearch |
This is now done with your PR, thanks! |
Should the Dockerfile and/or docker-compose.yml files be updated to include the healthcheck? |
i will do a PR |
would be nice if healthchecks would be added to the containers 😊 im running a swam cluster and containers without a healtheck can make problems
The text was updated successfully, but these errors were encountered: