From 51251b9fb05c803696687776ef56173bcc34e9f4 Mon Sep 17 00:00:00 2001 From: Dejan Zelic Date: Mon, 28 Sep 2020 13:18:45 -0700 Subject: [PATCH] Added Healthcheck to Docker Compose Frigate provides an HTTP server that can be used to detect if frigate is running or not. Using the docker-compose "healthcheck" feature we can set automations to restart the service if it stops working. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 554a4c055..86bb6217d 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,12 @@ Example docker-compose: - "5000:5000" environment: FRIGATE_RTSP_PASSWORD: "password" + healthcheck: + test: ["CMD", "wget" , "-q", "-O-", "http://localhost:5000"] + interval: 30s + timeout: 10s + retries: 5 + start_period: 3m ``` A `config.yml` file must exist in the `config` directory. See example [here](config/config.example.yml) and device specific info can be found [here](docs/DEVICES.md).