Hi Community,
I’m setting up Odoo 18 in Docker with HashiCorp Vault for secrets management, but the container fails health checks. Here’s my setup:
Error:
ERROR: for odoo Container "8659c****02" is unhealthy. ERROR: Encountered errors while bringing up the project.
Configuration:dp
- Docker Compose:
services: vault: image: hashicorp/vault # ... (dev mode setup) odoo: depends_on: vault: condition: service_healthy healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8069/web/health"]
- Symptoms:
- Odoo container starts but exits as "unhealthy"
- Vault logs show successful secret storage
- Manual curl to http://localhost:8069 works
What I’ve Tried:
✅ Verified Vault secrets are injected (docker exec odoo cat /etc/odoo/odoo.conf)
✅ Increased start_period to 120s
✅ Added workers = 0 to odoo.conf for debugging
Need Help With:
- Why does the health check fail despite Odoo responding?
- Are there better health check parameters for Odoo?
- How to debug Vault-Odoo connection issues?