diff --git a/docker-compose.yml b/docker-compose.yml index 31d99b7..2bf22be 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,7 +5,7 @@ services: context: . dockerfile: Dockerfile ports: - - "8001:8001" + - "8001:8000" environment: PYTHONUNBUFFERED: "1" APP_MODULE: "src.main:app" diff --git a/src/infrastructure/config/settings.py b/src/infrastructure/config/settings.py index 09bdd5c..30b6b74 100644 --- a/src/infrastructure/config/settings.py +++ b/src/infrastructure/config/settings.py @@ -126,7 +126,7 @@ class Settings(BaseSettings): @property def EXCLUDED_PATHS(self) -> List[str]: - return ["/docs", "/redoc", "/openapi.json", "/ping", "/health"] + return ["/docs", "/redoc", "/openapi.json", "/ping", "/health", '/healthcheck'] @lru_cache(maxsize=1) diff --git a/src/main.py b/src/main.py index df8920e..fa43d94 100644 --- a/src/main.py +++ b/src/main.py @@ -104,6 +104,7 @@ async def ping() -> dict[str, str]: 'status': 'ok', } +@app.get('/healthcheck') @app.get('/health') async def health() -> dict[str, str]: return {