build: add docker-compose and deploy script for frontend service

This commit is contained in:
2025-11-14 13:38:37 +08:00
parent a606b5766a
commit 9ff85984e4
2 changed files with 231 additions and 0 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
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