Merge pull request #132 from Gulpman/patch-1

Document Docker healthcheck configuration
This commit is contained in:
Owen Schwartz
2026-07-06 10:16:39 -04:00
committed by GitHub
+16
View File
@@ -199,6 +199,22 @@ services:
- --endpoint https://app.pangolin.net - --endpoint https://app.pangolin.net
``` ```
#### Docker healthcheck
The newt cliens suports healthchecks as described in [Configure Sites](/manage/sites/configure-site#param-health-file). This file can be used to do a
healthcheck from within docker (compose file).
We need to define the `HEALTH_FILE` environment variable as well as the healthcheck itself:
```bash
environment:
- HEALTH_FILE=/tmp/healthy
healthcheck:
test: ["CMD-SHELL", "[ -f /tmp/healthy ]"]
interval: 30s
timeout: 5s
start_period: 30s
retries: 3
```
Start the service: Start the service:
```bash ```bash