From c1c19e307f895c26afa5d3acc53adfba2685355c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Thu, 17 Apr 2025 12:36:55 +0200 Subject: [PATCH] Add health check to frontend --- .github/docker-compose.test.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/docker-compose.test.yml b/.github/docker-compose.test.yml index 3eb7c0f5ff..c2912011ce 100644 --- a/.github/docker-compose.test.yml +++ b/.github/docker-compose.test.yml @@ -30,6 +30,12 @@ services: - "3000:3000" environment: UNLEASH_API: "http://unleash:4242/" + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:3000/login || exit 1 + interval: 1s + timeout: 1m + retries: 10 + start_period: 30s unleash: image: unleashorg/unleash-enterprise:latest pull_policy: "always"