ci: fix test worker and API upstream config
This commit is contained in:
@@ -12,4 +12,6 @@ services:
|
||||
- "host.docker.internal:host-gateway"
|
||||
environment:
|
||||
# Gateway 与前端容器在同一台测试服务器,通过宿主机内部地址访问。
|
||||
API_UPSTREAM: "${API_UPSTREAM:-http://host.docker.internal:9000}"
|
||||
# 测试环境固定走 Docker 宿主机网关,避免 Jenkins 全局环境变量或
|
||||
# 工作区残留配置把上游覆盖成公网 IP,造成容器回连公网端口失败。
|
||||
API_UPSTREAM: "http://host.docker.internal:9000"
|
||||
|
||||
Reference in New Issue
Block a user