From c298109a7b904cc760ca8fb67aef92492d44234d Mon Sep 17 00:00:00 2001 From: Wichai <1482605+Chengings@users.noreply.github.com> Date: Thu, 11 Nov 2021 00:47:13 +0000 Subject: [PATCH] Change healthcheck script to utilise "wget" (#309) * Change healthcheck script to utilise "wget" * add "tries=1" option --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 332504e..2688e9d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,6 +8,6 @@ services: ports: - 8080:8080 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8080/settings"] + test: ["CMD", "wget", "--spider", "-q", "--tries=1", "http://localhost:8080/settings"] interval: 5m - timeout: 3s \ No newline at end of file + timeout: 3s