feat(ops): add database readiness probe

This commit is contained in:
cesnimda
2026-08-31 11:54:36 +02:00
parent 2f146f743c
commit b9e703ee7c
6 changed files with 56 additions and 2 deletions
+10
View File
@@ -550,6 +550,16 @@ if ! curl -fsS "${public_base}/" >/dev/null; then
exit 1
fi
if ! curl -fsS "${public_base}/health" >/dev/null; then
echo "Public API liveness check failed for ${public_base}/health"
exit 1
fi
if ! curl -fsS "${public_base}/ready" >/dev/null; then
echo "Public API/database readiness check failed for ${public_base}/ready"
exit 1
fi
if ! curl -fsS -D "$auth_config_headers_file" -o "$auth_config_body_file" "${public_base}/api/auth/config"; then
echo "Public API smoke check failed for ${public_base}/api/auth/config"
exit 1