Skip to content

Add Docker Compose healthchecks for production stack - #12419

Closed
br413 wants to merge 1 commit into
inventree:masterfrom
br413:fix/docker-healthchecks
Closed

Add Docker Compose healthchecks for production stack#12419
br413 wants to merge 1 commit into
inventree:masterfrom
br413:fix/docker-healthchecks

Conversation

@br413

@br413 br413 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Hi @matmair — following up on #12123.

This PR adds Docker Compose healthchecks for the production stack:

  • inventree-db: pg_isready
  • inventree-cache: redis-cli ping
  • inventree-server: existing /api/system/health/ endpoint
  • inventree-worker: /tmp/inventree_worker_heartbeat freshness (written every minute by InvenTree.tasks.heartbeat)

Also updates depends_on to wait for healthy upstream services before starting server, worker, and proxy.

Happy to adjust thresholds or the worker check approach if you prefer something else.

Wire existing /api/system/health/ and worker heartbeat checks into
docker-compose so stalled services can be detected by orchestrators.
@br413
br413 requested a review from SchrodingersGat as a code owner July 18, 2026 03:03
@netlify

netlify Bot commented Jul 18, 2026

Copy link
Copy Markdown

Deploy Preview for inventree-web-pui-preview canceled.

Name Link
🔨 Latest commit 333e1d1
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a5aecf4ca9d8800086709dd

@br413 br413 mentioned this pull request Jul 18, 2026
@br413

br413 commented Jul 18, 2026

Copy link
Copy Markdown
Contributor Author

Closing in favor of #12124, which already covers #12123 with maintainer review in progress.
Happy to help with docs/CHANGELOG or testing if useful.

@br413 br413 closed this Jul 18, 2026
@br413
br413 deleted the fix/docker-healthchecks branch July 18, 2026 03:41
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.

1 participant