From ca65657e39e6bd4c8a5ddb93160b44ac3b24bbb0 Mon Sep 17 00:00:00 2001 From: Vincent Chalamon <407859+vincentchalamon@users.noreply.github.com> Date: Mon, 20 Jan 2025 11:45:58 +0100 Subject: [PATCH] chore: fix PWA healthcheck --- compose.override.yaml | 6 ++++++ compose.prod.yaml | 6 ++++++ compose.yaml | 6 ------ 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/compose.override.yaml b/compose.override.yaml index 90666481..29eea747 100644 --- a/compose.override.yaml +++ b/compose.override.yaml @@ -34,6 +34,12 @@ services: WATCHPACK_POLLING: "true" # Development usage only NODE_TLS_REJECT_UNAUTHORIZED: "0" + healthcheck: + test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ] + start_period: 15s + interval: 5s + timeout: 3s + retries: 5 ###> doctrine/doctrine-bundle ### database: diff --git a/compose.prod.yaml b/compose.prod.yaml index bfc0c38e..4a45f9d4 100644 --- a/compose.prod.yaml +++ b/compose.prod.yaml @@ -22,6 +22,12 @@ services: NEXT_PUBLIC_OIDC_SERVER_URL: ${NEXT_PUBLIC_OIDC_SERVER_URL} environment: AUTH_SECRET: ${AUTH_SECRET} + healthcheck: + test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://127.0.0.1:3000 || exit 1" ] + start_period: 5s + interval: 5s + timeout: 3s + retries: 5 database: environment: diff --git a/compose.yaml b/compose.yaml index 0251a11b..cfeaf699 100644 --- a/compose.yaml +++ b/compose.yaml @@ -48,12 +48,6 @@ services: AUTH_SECRET: ${AUTH_SECRET:-!ChangeThisNextAuthSecret!} AUTH_URL: ${AUTH_URL:-https://localhost/api/auth} NEXT_SHARP_PATH: /srv/app/node_modules/sharp - healthcheck: - test: [ "CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1" ] - start_period: 5s - interval: 10s - timeout: 3s - retries: 5 ###> doctrine/doctrine-bundle ### database: