feat(docker): add support for HOST env

This commit is contained in:
Mathieu Dallaire
2025-08-04 10:35:49 -04:00
parent c1dfec8c4d
commit 73752f89c8
+3 -1
View File
@@ -1,6 +1,7 @@
from __future__ import annotations
import logging
import os
import uvicorn
from fastapi import FastAPI
@@ -21,4 +22,5 @@ app.include_router(router=router)
if __name__ == "__main__":
uvicorn.run(app, host="0.0.0.0", port=8191, log_level=LOG_LEVEL) # noqa: S104
host = os.getenv("HOST", "0.0.0.0")
uvicorn.run(app, host="host", port=8191, log_level=LOG_LEVEL) # noqa: S104