You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- add GATEWAY_HOST toggle for Podman/WSL2 routing
- reduce Eureka server log levels
- acme-order: listen on any IP
- avoid leaving the container network for traffic to acme-cart
- acme-shopping-react: fix infinite loading on product pages
Copy file name to clipboardExpand all lines: local-development/README.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,21 @@ cd local-development
18
18
docker compose -p acme-fitness up -d
19
19
```
20
20
21
+
### Configure gateway routes to services running on host
22
+
23
+
[`spring-enterprise/routes.yml`](spring-enterprise/routes.yml) builds upstream URIs with `${GATEWAY_HOST:host.docker.internal}` as the hostname. Compose passes `GATEWAY_HOST` into the gateway container (default `host.docker.internal`). For **Podman** (or when that hostname misbehaves), set `GATEWAY_HOST` to a value that will work on your machine before running `compose up`:
24
+
25
+
```shell
26
+
# Option 1: Copy [.env.example](.env.example) to **`local-development/.env`** and uncomment the line (Compose loads `.env` from this directory).
27
+
# Option 2: Set the env var with your preferred shell
28
+
# bash
29
+
export GATEWAY_HOST="host.containers.internal"
30
+
# CMD
31
+
set GATEWAY_HOST="host.containers.internal"
32
+
# PowerShell
33
+
$env:GATEWAY_HOST="host.containers.internal"
34
+
```
35
+
21
36
### Boot up each of the local application following their README
0 commit comments