From 1e07c15e66e14656b66ad64bfc2409e30173fc76 Mon Sep 17 00:00:00 2001 From: barredterra <14891507+barredterra@users.noreply.github.com> Date: Mon, 14 Oct 2024 20:35:43 +0200 Subject: [PATCH] fix: add healthcheck for frontend service --- templates/compose/erpnext.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/compose/erpnext.yaml b/templates/compose/erpnext.yaml index 3d4e55e1a..0939c8682 100644 --- a/templates/compose/erpnext.yaml +++ b/templates/compose/erpnext.yaml @@ -113,6 +113,8 @@ services: condition: on-failure command: - nginx-entrypoint.sh + healthcheck: + test: 'curl --fail -H "Host: $$FRAPPE_SITE_NAME_HEADER" http://localhost:8080/api/method/ping' environment: BACKEND: backend:8000 SOCKETIO: websocket:9000