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

18 lines
565 B
YAML

services:
client-web:
build:
context: .
dockerfile: Dockerfile
args:
VITE_ADMIN_WEB_ORIGIN: "${VITE_ADMIN_WEB_ORIGIN:-http://8.163.30.128:9001}"
image: client-web-test:local
container_name: client-web-test
restart: unless-stopped
ports:
- "${HOST_PORT:-9002}:80"
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Gateway 与前端容器在同一台测试服务器,通过宿主机内部地址访问。
API_UPSTREAM: "${API_UPSTREAM:-http://host.docker.internal:9000}"