refactor: frontend health check

This commit is contained in:
barredterra 2024-11-03 01:53:54 +01:00
parent c866dad55e
commit 072edfc6bc

View file

@ -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