Skip to content

[IMP] Add healthcheck#700

Closed
david-banon-tecnativa wants to merge 1 commit into
masterfrom
add-healthcheck
Closed

[IMP] Add healthcheck#700
david-banon-tecnativa wants to merge 1 commit into
masterfrom
add-healthcheck

Conversation

@david-banon-tecnativa

Copy link
Copy Markdown
Contributor

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

Comment thread bin/healthcheck
#!/usr/bin/env bash

if (( ${ODOO_VERSION/%.0} > 13));then
curl -sf http://localhost:8069/web/health || exit 1

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@pedrobaeza pedrobaeza deleted the add-healthcheck branch June 17, 2026 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants