build: add docker-compose and deploy script for frontend service
This commit is contained in:
22
docker-compose.yml
Normal file
22
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user