Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/configurable-nats-bind.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"hephaestus": minor
---

The core NATS port can now be exposed beyond localhost. It stays bound to `127.0.0.1` by default;
set `NATS_BIND_HOST=0.0.0.0` (or a specific interface address) to let other hosts reach the bus — for
example when a separate environment consumes events from this one's JetStream.

**Operators:** only expose it on a trusted or firewalled network. The bus is unauthenticated, so a
public bind puts its contents within reach of anyone who can route to the host.
4 changes: 3 additions & 1 deletion docker/compose.core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ services:
image: nats:alpine
restart: unless-stopped
ports:
- "127.0.0.1:4222:4222"
# Loopback-only by default. Set NATS_BIND_HOST=0.0.0.0 (or a specific interface) to let other
# hosts reach the bus — only on a trusted or firewalled network, as NATS runs unauthenticated.
- "${NATS_BIND_HOST:-127.0.0.1}:4222:4222"
command: ["--config", "/etc/nats/nats-server.conf"]
volumes:
- nats-data:/data
Expand Down
Loading