From 597d3955a39cc6ffe88ed559ea16c883f5e5cfe0 Mon Sep 17 00:00:00 2001 From: Brad Murray Date: Thu, 12 Jan 2023 17:59:02 -0500 Subject: [PATCH] Adding healthchecks to docker-compose --- docker-compose.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-compose.yaml b/docker-compose.yaml index 435c2e1..7d32b79 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -32,6 +32,10 @@ services: - SETGID - SETUID - DAC_OVERRIDE + healthcheck: + test: [ "CMD", "redis-cli", "--raw", "incr", "ping" ] + interval: 1m + timeout: 5s searxng: container_name: searxng @@ -55,6 +59,11 @@ services: options: max-size: "1m" max-file: "1" + healthcheck: + test: ["CMD", "wget" ,"--no-verbose", "--tries=1", "--spider", "http://localhost:8080/info/en/about"] + interval: 2m + timeout: 5s + networks: searxng: ipam: