mirror of
https://github.com/fosrl/docs-v2.git
synced 2026-10-20 19:49:09 +02:00
Merge pull request #132 from Gulpman/patch-1
Document Docker healthcheck configuration
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user