ci: fix test worker and API upstream config

This commit is contained in:
2026-07-31 10:05:16 +08:00
parent cefb1529fc
commit bb09c7d6a0
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -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"