From b5e88adc2bc93f4bee403cf3c7dfc72e8369714f Mon Sep 17 00:00:00 2001 From: Arxk <121711454+arxkdev@users.noreply.github.com> Date: Wed, 22 Jan 2025 12:09:46 -0500 Subject: [PATCH] fix(service): Plunk API & health check endpoint (#4925) - Add health endpoint to Plunk healthcheck - Add NODE_OPTIONS common fix --- templates/compose/plunk.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/compose/plunk.yaml b/templates/compose/plunk.yaml index 4b356720a..60c2ee850 100644 --- a/templates/compose/plunk.yaml +++ b/templates/compose/plunk.yaml @@ -25,9 +25,10 @@ services: - APP_URI=${SERVICE_FQDN_PLUNK} - API_URI=${SERVICE_FQDN_PLUNK}/api - DISABLE_SIGNUPS=${DISABLE_SIGNUPS:-False} + - NODE_OPTIONS=--no-network-family-autoselection entrypoint: [ "/app/entry.sh" ] healthcheck: - test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:3000"] + test: ["CMD-SHELL", "(wget -S --spider http://127.0.0.1:3000/api/health 2>&1 | grep -q \"HTTP/1.1 [1-3]\")"] interval: 2s timeout: 10s retries: 15