Stu Mason · Folkestone, Kent
One entryMerged PR· crunch.stumason.dev· PHP

PR #49 merged: chore(compose): healthchecks for asr/vision/ocr sidecars

additions
+18
deletions
-0
files changed
1

Summary

Adds Python-based healthchecks to the three ML sidecars (asr, vision, ocr) to report their status to Coolify. Without these, the entire app stack reports running:unknown despite individual services being healthy.

Details

  • asr & vision: start_period: 180s (time for model loading on cold start)
  • ocr: start_period: 60s (faster startup, Tesseract is lightweight)
  • All three check http://localhost:9000/health every 30s with 10s timeout
  • Uses Python urllib.request since python-slim images don't include curl/wget

Testing

  • YAML validation passes (python3 -c "import yaml; yaml.safe_load(open('docker-compose.yaml'))")
  • Python healthcheck syntax verified
  • CI checks must pass before merge

Co-Authored-By: Claude Fable 5 [email protected]