Configure Streamlit to listen on all network interfaces (0.0.0.0)#338
Configure Streamlit to listen on all network interfaces (0.0.0.0)#338t0mdavid-m merged 1 commit intomainfrom
Conversation
In single-instance mode, `streamlit run app.py` was invoked without `--server.address`, causing Streamlit to default to localhost and be unreachable from outside the container. This adds `--server.address 0.0.0.0` to the single-instance entrypoint in both Dockerfiles, sets `address = "0.0.0.0"` in .streamlit/config.toml, and makes the nginx listen directive in Dockerfile_simple explicitly bind 0.0.0.0. https://claude.ai/code/session_01GX2U6UAAj8sF1smN9Lc4J5
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
This PR updates the Streamlit configuration to bind to all network interfaces (0.0.0.0) instead of the default localhost-only binding. This allows the application to be accessible from external hosts when deployed in containerized environments.
Changes Made
.streamlit/config.toml: Addedaddress = "0.0.0.0"to the[server]configuration sectionDockerfile: Updated the single-instance entrypoint to explicitly pass--server.address 0.0.0.0flag when starting StreamlitDockerfile_simple:0.0.0.0:8501(changed from8501)--server.address 0.0.0.0flag when starting StreamlitImplementation Details
The changes ensure consistent network binding across all deployment scenarios:
https://claude.ai/code/session_01GX2U6UAAj8sF1smN9Lc4J5