feat: add containerized FastAPI health check

This commit is contained in:
bot
2026-08-11 14:44:59 +03:00
parent fea8ca89f8
commit f7e668d692
10 changed files with 167 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
from fastapi import FastAPI
app = FastAPI(
title="Media Ingest",
description="Private broadcast media-ingest service.",
version="0.1.0",
)
@app.get("/", tags=["system"])
def root() -> dict[str, str]:
return {"name": "Media Ingest", "status": "running"}
@app.get("/health", tags=["system"])
def health() -> dict[str, str]:
"""Report whether the application process can serve requests."""
return {"status": "healthy"}