Document Docker-internal service URLs in env example

- Clarify that Compose services must use service-name URLs
- Warn against using 127.0.0.1 or localhost inside containers
This commit is contained in:
dirtydishes 2026-05-06 23:05:11 -04:00
parent 6ba3c5343b
commit 00ba0db5ce

View file

@ -1,3 +1,5 @@
## Docker-internal service URLs (do not use 127.0.0.1/localhost here).
## Containers must reach each other via Compose service names.
NATS_URL=nats://nats:4222 NATS_URL=nats://nats:4222
CLICKHOUSE_URL=http://clickhouse:8123 CLICKHOUSE_URL=http://clickhouse:8123
CLICKHOUSE_DATABASE=default CLICKHOUSE_DATABASE=default