Fix K8s service env collision on REUSE_SURFACE_PORT
This commit is contained in:
parent
ce372f04e7
commit
ae41395d3e
2 changed files with 4 additions and 4 deletions
|
|
@ -8,8 +8,8 @@ COPY schemas ./schemas
|
||||||
|
|
||||||
RUN pip install --no-cache-dir .
|
RUN pip install --no-cache-dir .
|
||||||
|
|
||||||
ENV REUSE_SURFACE_HOST=0.0.0.0
|
ENV REUSE_SURFACE_LISTEN_HOST=0.0.0.0
|
||||||
ENV REUSE_SURFACE_PORT=8000
|
ENV REUSE_SURFACE_LISTEN_PORT=8000
|
||||||
ENV REUSE_SURFACE_DB=/data/reuse.db
|
ENV REUSE_SURFACE_DB=/data/reuse.db
|
||||||
ENV REUSE_SURFACE_CACHE_DIR=/data/cache
|
ENV REUSE_SURFACE_CACHE_DIR=/data/cache
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,6 @@ def create_app() -> FastAPI:
|
||||||
def main() -> None:
|
def main() -> None:
|
||||||
import uvicorn
|
import uvicorn
|
||||||
|
|
||||||
host = os.environ.get("REUSE_SURFACE_HOST", "0.0.0.0")
|
host = os.environ.get("REUSE_SURFACE_LISTEN_HOST", "0.0.0.0")
|
||||||
port = int(os.environ.get("REUSE_SURFACE_PORT", "8000"))
|
port = int(os.environ.get("REUSE_SURFACE_LISTEN_PORT", "8000"))
|
||||||
uvicorn.run(create_app(), host=host, port=port, reload=False)
|
uvicorn.run(create_app(), host=host, port=port, reload=False)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue