mirror of
https://github.com/bsedin/matrix-webhook.git
synced 2026-04-09 11:25:40 +00:00
README: move healthcheck into docker-compose section
This commit is contained in:
34
README.md
34
README.md
@@ -56,26 +56,6 @@ options:
|
|||||||
-v, --verbose increment verbosity level
|
-v, --verbose increment verbosity level
|
||||||
```
|
```
|
||||||
|
|
||||||
### Healthcheck
|
|
||||||
|
|
||||||
For load balancers which require a healthcheck endpoint to validate the availability of the service, the `/health` path can be used. The endpoint will return a **HTTP 200** status and a json document.
|
|
||||||
|
|
||||||
Using the Healthcheck endpoint with Traefik and docker-compose:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
version: '3'
|
|
||||||
|
|
||||||
...
|
|
||||||
|
|
||||||
services:
|
|
||||||
bot:
|
|
||||||
...
|
|
||||||
labels:
|
|
||||||
traefik.enable: "true"
|
|
||||||
traefik.http.routers.matrix-webhook.rule: "Host(`${CHATONS_SERVICE:-matrixwebhook}.${CHATONS_DOMAIN:-localhost}`)"
|
|
||||||
traefik.http.services.matrix-webhook.loadbalancer.healthcheck.path: /health
|
|
||||||
```
|
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
```
|
```
|
||||||
@@ -97,6 +77,20 @@ A `docker-compose.yml` is provided:
|
|||||||
docker-compose up -d
|
docker-compose up -d
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Healthcheck
|
||||||
|
|
||||||
|
For load balancers which require a healthcheck endpoint to validate the availability of the service, the `/health` path can be used.
|
||||||
|
The endpoint will return a **HTTP 200** status and a json document.
|
||||||
|
|
||||||
|
To the Healthcheck endpoint with Traefik and docker-compose, you can add:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
services:
|
||||||
|
bot:
|
||||||
|
labels:
|
||||||
|
traefik.http.services.matrix-webhook.loadbalancer.healthcheck.path: /health
|
||||||
|
```
|
||||||
|
|
||||||
## Test / Usage
|
## Test / Usage
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user