aura-web/docker-compose.yml

17 lines
463 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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"