version: '3.8' networks: proxy-net: external: true # 使用已存在的 proxy-net 网络 services: teres_web_frontend: build: context: . dockerfile: Dockerfile args: BUILD_MODE: ${BUILD_MODE:-production} RAGFLOW_BASE: ${RAGFLOW_BASE:-/ragflow/} PORT: ${PORT:-5173} image: teres_web_frontend:latest container_name: teres_web_frontend networks: - proxy-net # 加入 NPM 的网络 ports: - "${PORT:-5173}:${PORT:-5173}" restart: unless-stopped