SaaShup / SaaShup/netbox-docker-agent

:sparkles: Healthcheck and `depends_on`

Open
#179 4 comments 0 reactions 1 assignee View on GitHub

@lvenier is already working on this.

Since Mar 31, 2025.

enhancement
Dominant language
JavaScript
Stars
43
Forks
2
Avg merge
40m
Merged PRs (30d)
2

Description

Context

Dockerfiles can have the HEALTHCHECK directive (see documentation), and the Docker Engine API has a Healthcheck field when creating a container to override the container's healthcheck:

Image

When set, the container's status will remain in starting until the check succeeds, and the container's status becomes healthy. If the healthcheck fails until the start period is expired, the status become unhealthy.

This allows Docker Compose to implement the depends_on property to wait for other containers to be healthy (or running if no healthcechk is set).

Feature Request

The agent should allow the user to set the container's healthcheck (because not many Docker images use the HEALTHCHECK directive), and then provide a depends_on field to wait for dependencies to be healthy or running.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.