Files
sablier/docs/health.md
2024-11-10 10:52:36 -05:00

23 lines
541 B
Markdown

## Sablier Healthcheck
### Using the `/health` route
You can use the route `/health` to check for healthiness.
- Returns 200 `OK` when ready
- Returns 503 `Service Unavailable` when terminating
### Using the `sablier health` command
You can use the command `sablier health` to check for healthiness.
`sablier health` takes on argument `--url` which defaults to `http://localhost:10000/health`.
```yml
services:
sablier:
image: sablierapp/sablier:1.8.1
healthcheck:
test: ["sablier", "health"]
interval: 1m30s
```