composte-hermes.yml aktualisiert

This commit is contained in:
Marc Blatter 2026-07-22 10:45:27 +00:00
parent 7cf9bd9fdc
commit b31f60ddf3
1 changed files with 13 additions and 7 deletions

View File

@ -67,14 +67,20 @@ services:
- | - |
set -e set -e
hermes-agent gateway run & hermes-agent gateway run &
GATEWAY_PID=$! GATEWAY_PID=$$!
until curl -sf http://localhost:8642 >/dev/null 2>&1; do sleep 1; done until curl -sf http://localhost:8642 >/dev/null 2>&1; do
if ! kill -0 $$GATEWAY_PID 2>/dev/null; then
echo "FEHLER: Gateway-Prozess ist abgestürzt, breche ab."
exit 1
fi
sleep 1
done
hermes-agent dashboard --host 0.0.0.0 --no-open & hermes-agent dashboard --host 0.0.0.0 --no-open &
DASHBOARD_PID=$! DASHBOARD_PID=$$!
wait -n $GATEWAY_PID $DASHBOARD_PID wait -n $$GATEWAY_PID $$DASHBOARD_PID
EXIT_CODE=$? EXIT_CODE=$$?
kill $GATEWAY_PID $DASHBOARD_PID 2>/dev/null || true kill $$GATEWAY_PID $$DASHBOARD_PID 2>/dev/null || true
exit $EXIT_CODE exit $$EXIT_CODE
healthcheck: healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8642 && curl -f http://localhost:9119"] test: ["CMD-SHELL", "curl -f http://localhost:8642 && curl -f http://localhost:9119"]
interval: 30s interval: 30s