[IMP] Add healthcheck#700
Closed
david-banon-tecnativa wants to merge 1 commit into
Closed
Conversation
ap-wtioit
reviewed
May 27, 2026
| #!/usr/bin/env bash | ||
|
|
||
| if (( ${ODOO_VERSION/%.0} > 13));then | ||
| curl -sf http://localhost:8069/web/health || exit 1 |
Contributor
There was a problem hiding this comment.
this is a simple approach to a healthcheck for the odoo services that over time did not work for us.
there is cases where odoo http does not come alive for a long time and the service should still be marked as healthy (e.g. tests and db restores).
also there is cases were those 2 urls do not catch basic errors in odoo becoming unhealthy for endusers that the basic urls do not catch.
this is why i proposed #701, you can use it as it is or as inspiration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Healthcheck built into the image, this can be used in docker compose, kubernetes or other deployment systems to know if the container is actually working as expected.
@Tecnativa @victoralmau @CristianoMafraJunior