feat: add containerized FastAPI health check
This commit is contained in:
@@ -0,0 +1 @@
|
||||
"""Media Ingest application package."""
|
||||
+18
@@ -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"}
|
||||
Reference in New Issue
Block a user