Skip to content

fix(compose): bind published ports to localhost only - #72

Merged
OneByJorah merged 1 commit into
mainfrom
hermes/2026-10-09-bind-localhost
Oct 10, 2026
Merged

OneByJorah merged 1 commit into
mainfrom
hermes/2026-10-09-bind-localhost

Conversation

@OneByJorah

Copy link
Copy Markdown
Owner

Problem

Every published port in this repo's compose files bound to 0.0.0.0, so a locally run
stack was reachable from anywhere the host is — including the LAN. For a self-hosted
app whose own docs describe it as running on a private/Tailscale network, that is the
wrong default.

Change

Each unsigned port mapping now binds explicitly to localhost:

-      - "8080:8080"
+      - "127.0.0.1:8080:8080"

Already-scoped mappings, commented-out examples and UDP/TCP suffixes were left alone.

Verified

  • Re-scanned every compose file in the repo: 0 unsigned public port mappings remain.
  • Mappings were rewritten mechanically and reviewed as a diff; no application code touched.

Heads-up

This is a behaviour change. Anyone who relied on reaching the stack directly from
another machine on the LAN must now publish the port themselves — e.g. bind the Tailscale
address (100.x.y.z:8080:8080) instead of 127.0.0.1. That is deliberate: exposing a
self-hosted service should be a decision, not a default.

The compose files published ports on 0.0.0.0, so a local test stack was reachable
from anywhere the host is. Every mapping now binds 127.0.0.1 explicitly.

Verified: 0 unsigned public port mappings remain in this repository.
@cloudflare-workers-and-pages

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
llm-chat-app-template 1ff4414 Commit Preview URL

Branch Preview URL
Oct 09 2026, 12:51 PM

@OneByJorah
OneByJorah merged commit 46e4f50 into main Oct 10, 2026
4 of 5 checks passed
@OneByJorah
OneByJorah deleted the hermes/2026-10-09-bind-localhost branch October 10, 2026 15:51
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.

1 participant