diff --git a/api/main.py b/api/main.py index 4c36bd86..05dd50e8 100644 --- a/api/main.py +++ b/api/main.py @@ -18,15 +18,6 @@ app.add_middleware(BrotliMiddleware) -class HealthCheck(BaseModel): - """ - Response model for health check - """ - - status: str = "OK" - - - @app.get( "/", tags=["Capabilities"], @@ -60,13 +51,3 @@ async def get_collection_metadata(request: Request) -> Collection: # Include all routes app.include_router(edr.router) # app.include(records.router) - - -@app.get("/health", tags=["healthcheck"]) -def get_health() -> HealthCheck: - """ - Small health check to post a response if API is allive. - This should probably be expanded to also include availablity of grpc backend service. - """ - - return HealthCheck(status="OK") diff --git a/docker-compose.yml b/docker-compose.yml index ab6bf299..82fbad8d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -66,12 +66,6 @@ services: environment: - DSHOST=store - DSPORT=50050 - healthcheck: - test: ["CMD-SHELL", "curl --fail http://localhost:8000/health || exit 1"] - interval: 60s - retries: 5 - start_period: 30s - timeout: 5s depends_on: store: condition: service_healthy