Commit 831458e
committed
fix(example): point OPA at the in-network NATS service name
The docker-compose example pointed OPA at nats://localhost:4222, but
inside the OPA container `localhost` is the OPA container itself — not
the NATS container. OPA therefore failed at startup with:
Failed to connect to NATS: ... nats: no servers available for connection
and exited before opening the HTTP server, which is why TestIntegration
in CI got "context deadline exceeded" while waiting for /health.
Use the docker-compose service name `nats` so OPA can reach NATS via
the docker network. A comment notes the standalone (host) value.1 parent a2dc5ea commit 831458e
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
4 | 7 | | |
5 | 8 | | |
6 | 9 | | |
| |||
0 commit comments