deploy: route test API through host gateway
This commit is contained in:
@@ -8,6 +8,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "${HOST_PORT:-9002}:80"
|
- "${HOST_PORT:-9002}:80"
|
||||||
|
extra_hosts:
|
||||||
|
- "host.docker.internal:host-gateway"
|
||||||
environment:
|
environment:
|
||||||
# 测试环境 Gateway;迁移环境时可由 Jenkins 环境变量覆盖。
|
# Gateway 与前端容器在同一台测试服务器,通过宿主机内部地址访问。
|
||||||
API_UPSTREAM: "${API_UPSTREAM:-http://8.163.30.128:9000}"
|
API_UPSTREAM: "${API_UPSTREAM:-http://host.docker.internal:9000}"
|
||||||
|
|||||||
Reference in New Issue
Block a user