version: "3.9" # 独立的前端编排:构建 Vite 产物并由 nginx 提供 # 后端地址通过构建参数 VITE_API_TARGET 注入(默认指向同机 4001) services: web: build: context: . dockerfile: Dockerfile args: VITE_API_TARGET: ${VITE_API_TARGET:-http://host.docker.internal:4001} image: agent-studio-web:v0.9 container_name: agent-web restart: unless-stopped ports: - "${HTTP_PORT:-8080}:80"