Files
admin-web/docker-compose.test.yml
T

19 lines
708 B
YAML
Raw Normal View History

services:
admin-web:
build:
context: .
dockerfile: Dockerfile
image: admin-web-test:local
container_name: admin-web-test
restart: unless-stopped
ports:
2026-07-30 21:46:01 +08:00
- "${HOST_PORT:-9001}:80"
2026-07-30 23:26:12 +08:00
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
2026-08-08 11:33:09 +08:00
CLIENT_WEB_URL: "${CLIENT_WEB_URL:-http://8.163.30.128:9002}"
2026-07-30 23:26:12 +08:00
# Gateway 与前端容器在同一台测试服务器,通过宿主机内部地址访问。
2026-07-31 10:05:16 +08:00
# 测试环境固定走 Docker 宿主机网关,避免 Jenkins 全局环境变量或
# 工作区残留配置把上游覆盖成公网 IP,造成容器回连公网端口失败。
API_UPSTREAM: "http://host.docker.internal:9000"