From 2a1392fb5ba99bae65f64c81cef32bb624d81a66 Mon Sep 17 00:00:00 2001 From: Florian Preinstorfer Date: Fri, 17 Oct 2025 17:54:16 +0200 Subject: [PATCH] Add healthcheck to container docs --- docs/setup/install/container.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/setup/install/container.md b/docs/setup/install/container.md index d8f6113b..98caa19c 100644 --- a/docs/setup/install/container.md +++ b/docs/setup/install/container.md @@ -39,6 +39,7 @@ Registry](https://github.com/juanfont/headscale/pkgs/container/headscale). The c --volume "$(pwd)/run:/var/run/headscale" \ --publish 127.0.0.1:8080:8080 \ --publish 127.0.0.1:9090:9090 \ + --health-cmd "CMD headscale health" \ docker.io/headscale/headscale: \ serve ``` @@ -66,6 +67,8 @@ Registry](https://github.com/juanfont/headscale/pkgs/container/headscale). The c - /lib:/var/lib/headscale - /run:/var/run/headscale command: serve + healthcheck: + test: ["CMD", "headscale", "health"] ``` 1. Verify headscale is running: