From 451eef31a6cb3ff619ba08a2e7c01e107a6b2828 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Wed, 28 Aug 2024 10:33:54 -0500 Subject: [PATCH] Bind to the host to allow connections in FastAPI Docker example (#6753) This wouldn't allow connections as written --- docs/guides/integration/fastapi.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/integration/fastapi.md b/docs/guides/integration/fastapi.md index a18d1d74a..a62c861a1 100644 --- a/docs/guides/integration/fastapi.md +++ b/docs/guides/integration/fastapi.md @@ -138,7 +138,7 @@ WORKDIR /app RUN uv sync --frozen --no-cache # Run the application. -CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80"] +CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80", "--host", "0.0.0.0"] ``` For more on using uv with Docker, see the [Docker guide](./docker.md).