mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
Feature Request: Healthcheck for newt container #61
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daddeldash on GitHub (Sep 18, 2025).
Hey guys,
as docker has a built in mechanism to restart malfunctioning containers, it could be a good idea to use a healthcheck for the newt containers. Sorry for not directly opening a pull request, but I‘m not very familliar with git and its mechanisms. So here is what I actually use for healthchecks
@oschwartz10612 commented on GitHub (Sep 20, 2025):
We have a health file which I think solves this? We should create an
example maybe!
From the readme:
health-file (optional): Check if connection to WG server (pangolin) is
ok. creates a file if ok, removes it if not ok. Can be used with docker
healtcheck to restart newt
@daddeldash commented on GitHub (Sep 20, 2025):
Sorry, I completely overlooked that point.
Perhaps it would be a good idea to integrate the health check directly into the container via the Dockerfile. Then it would be used automatically.
@jakbutler commented on GitHub (Oct 6, 2025):
Here's an example that worked for me, using the health file: