Skip to content

Docker health checks #12123

Closed
Closed

Description

@SchrodingersGat

Discussed in #12122

Originally posted by CraigBurden June 8, 2026
I would be really great to implement some ways of implementing healthchecks for docker to improve monitoring and error correction.

I had an issue recently where the background worker stalled for some reason and my instance accumulated ~10k pending tasks, but the worker container was still running. Restarting the container fixed the issue.

Perhaps adding some basic status checking CLI tools which can then be used as healthchecks would be useful?

Activity

  1. added this to the 2.0.0 milestone on Jun 8, 2026
  2. added
    docker
    setup
    on Jun 8, 2026
  3. matmair commented on Jun 8, 2026

    @matmair
    Member

    FYI: we already ship health check endpoints on the server

  4. br413 commented on Jul 18, 2026

    @br413
    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.

  5. br413 commented on Jul 18, 2026

    @br413
    Contributor

    Opened PR #12419 for this.

  6. SchrodingersGat commented on Sep 1, 2026

    @SchrodingersGat
    MemberAuthor

    Closed in #12124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dockersetup

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions