SaaShup / SaaShup/netbox-docker-agent
:sparkles: Healthcheck and `depends_on`
@lvenier is already working on this.
Since Mar 31, 2025.
- 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:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.