Skip to content

Conversation

@t0mdavid-m
Copy link
Member

@t0mdavid-m t0mdavid-m commented Feb 10, 2026

Summary by CodeRabbit

  • Chores
    • Updated server configuration to listen on all network interfaces instead of localhost, enabling broader accessibility in containerized deployments across single and multi-instance setups.

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
The load-balanced Streamlit instances were still using
--server.address 127.0.0.1, causing them to only listen on
localhost. Change to 0.0.0.0 so Streamlit listens on all IPs
in all cases (single-instance and multi-instance).

https://claude.ai/code/session_01GX2U6UAAj8sF1smN9Lc4J5
@t0mdavid-m t0mdavid-m merged commit 1f2267c into main Feb 10, 2026
4 of 7 checks passed
@coderabbitai
Copy link

coderabbitai bot commented Feb 10, 2026

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

Configuration updates across Streamlit deployment files to bind server instances to all network interfaces (0.0.0.0) instead of localhost only (127.0.0.1). Changes affect the Streamlit config file, multi-instance nginx load-balanced deployment, and single-instance Docker setups.

Changes

Cohort / File(s) Summary
Streamlit Configuration
.streamlit/config.toml
Added address = "0.0.0.0" under [server] section to bind server to all interfaces instead of default localhost.
Docker Deployments
Dockerfile, Dockerfile_simple
Updated Streamlit instance startup commands to use --server.address 0.0.0.0 and modified nginx upstream directives to bind to 0.0.0.0, enabling external container network access in both load-balanced and single-instance modes.

Possibly related PRs

Poem

🐰 From localhost's cozy burrow we hop,
To 0.0.0.0—no more network stop!
All interfaces now answer the call,
Our Streamlit apps dance through them all! 🎉

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch claude/streamlit-listen-all-ips-lWgaj

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants