From 072edfc6bcdbe18e444bc65ce7f6beeeb4d7076d Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Sun, 3 Nov 2024 01:53:54 +0100 Subject: [PATCH] refactor: frontend health check --- templates/compose/erpnext.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/compose/erpnext.yaml b/templates/compose/erpnext.yaml index 2d5e9eff3..8303ff8a2 100644 --- a/templates/compose/erpnext.yaml +++ b/templates/compose/erpnext.yaml @@ -113,7 +113,8 @@ services: command: - nginx-entrypoint.sh healthcheck: - test: 'curl --fail -H "Host: $$FRAPPE_SITE_NAME_HEADER" http://localhost:8080/api/method/ping' + test: | + curl --fail -H "Host: $$FRAPPE_SITE_NAME_HEADER" http://localhost:8080/api/method/ping' | jq '.message == "pong"' | grep true || exit 1 environment: BACKEND: backend:8000 SOCKETIO: websocket:9000