chore: 更新生产部署的 compose 文件

This commit is contained in:
Wenjie Zhang 2026-03-19 11:26:04 +08:00
parent d62328d73b
commit 2ed4f08cf7
3 changed files with 21 additions and 12 deletions

View File

@ -5499,12 +5499,12 @@ wheels = [
[[package]]
name = "yuxi"
version = "0.5.3"
version = "0.6.0.dev0"
source = { virtual = "package/yuxi" }
[[package]]
name = "yuxi-workspace"
version = "0.5.3"
version = "0.6.0.dev0"
source = { virtual = "." }
dependencies = [
{ name = "aiofiles" },

View File

@ -47,8 +47,6 @@ services:
condition: service_healthy
redis:
condition: service_healthy
milvus:
condition: service_healthy
minio:
condition: service_healthy
@ -69,6 +67,7 @@ services:
- .env.prod
environment:
- HOST_IP=${HOST_IP:-}
- LITE_MODE=${LITE_MODE:-}
- POSTGRES_URL=${POSTGRES_URL:-postgresql+asyncpg://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgres}@postgres:5432/${POSTGRES_DB:-yuxi_know}}
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
- RUN_EVENTS_STREAM_TTL_SECONDS=${RUN_EVENTS_STREAM_TTL_SECONDS:-7200}
@ -94,8 +93,6 @@ services:
condition: service_healthy
redis:
condition: service_healthy
milvus:
condition: service_healthy
minio:
condition: service_healthy
@ -114,12 +111,13 @@ services:
- app-network
environment:
- NODE_ENV=production
- VITE_API_URL=http://api:5050
- VITE_USE_RUNS_API=${VITE_USE_RUNS_API:-false}
- VITE_LITE_MODE=${LITE_MODE:-}
command: nginx -g "daemon off;"
restart: unless-stopped
graph:
profiles:
- full
image: neo4j:5.26
container_name: graph
volumes:
@ -141,6 +139,8 @@ services:
restart: unless-stopped
etcd:
profiles:
- full
container_name: milvus-etcd
image: quay.io/coreos/etcd:v3.5.5
environment:
@ -182,6 +182,8 @@ services:
restart: unless-stopped
milvus:
profiles:
- full
image: milvusdb/milvus:v2.5.6
container_name: milvus
command: ["milvus", "run", "standalone"]
@ -252,7 +254,7 @@ services:
profiles:
- all
env_file:
- .env
- .env.prod
environment:
MINERU_MODEL_SOURCE: local
entrypoint: mineru-vllm-server
@ -285,7 +287,7 @@ services:
profiles:
- all
env_file:
- .env
- .env.prod
ports:
- 30001:30001
environment:

View File

@ -11,13 +11,20 @@ server {
}
location /api/ {
proxy_pass http://api:5050/api/; # 保持 /api/ 前缀
proxy_pass http://api:5050/api/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Connection '';
proxy_http_version 1.1;
# 对于上传请求,增加超时时间
# SSE/流式响应支持
proxy_buffering off;
proxy_cache off;
chunked_transfer_encoding on;
# 增加超时时间(上传和流式响应)
proxy_read_timeout 600;
proxy_connect_timeout 600;
proxy_send_timeout 600;