From fa9b4c660d5f6c287208dd09ffbaa2e375a17cce Mon Sep 17 00:00:00 2001 From: "jonas.martinez" Date: Sat, 30 Sep 2023 12:08:01 +0200 Subject: [PATCH 1/2] healthcheck --- lenra.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lenra.yml b/lenra.yml index 67f0ca8..760c6d6 100644 --- a/lenra.yml +++ b/lenra.yml @@ -24,3 +24,13 @@ generator: - "**" - "!/*.json" - "!/src/" + healthcheck: + test: + - CMD + - wget + - --spider + - -q + - http://localhost:8080/health + interval: 1s + retries: 5 + start_period: 10s From 6de4f236cbc29f827197f3e6ec492b2f33bdc920 Mon Sep 17 00:00:00 2001 From: "jonas.martinez" Date: Sat, 30 Sep 2023 12:13:46 +0200 Subject: [PATCH 2/2] fix --- lenra.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lenra.yml b/lenra.yml index 760c6d6..99917a5 100644 --- a/lenra.yml +++ b/lenra.yml @@ -25,12 +25,7 @@ generator: - "!/*.json" - "!/src/" healthcheck: - test: - - CMD - - wget - - --spider - - -q - - http://localhost:8080/health + cmd: "CMD wget --spider -q http://localhost:8080/health" interval: 1s retries: 5 - start_period: 10s + start: 10s