chore: 更新生产部署的 compose 文件
This commit is contained in:
parent
d62328d73b
commit
2ed4f08cf7
@ -5499,12 +5499,12 @@ wheels = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yuxi"
|
name = "yuxi"
|
||||||
version = "0.5.3"
|
version = "0.6.0.dev0"
|
||||||
source = { virtual = "package/yuxi" }
|
source = { virtual = "package/yuxi" }
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "yuxi-workspace"
|
name = "yuxi-workspace"
|
||||||
version = "0.5.3"
|
version = "0.6.0.dev0"
|
||||||
source = { virtual = "." }
|
source = { virtual = "." }
|
||||||
dependencies = [
|
dependencies = [
|
||||||
{ name = "aiofiles" },
|
{ name = "aiofiles" },
|
||||||
|
|||||||
@ -47,8 +47,6 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
milvus:
|
|
||||||
condition: service_healthy
|
|
||||||
minio:
|
minio:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
@ -69,6 +67,7 @@ services:
|
|||||||
- .env.prod
|
- .env.prod
|
||||||
environment:
|
environment:
|
||||||
- HOST_IP=${HOST_IP:-}
|
- 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}}
|
- 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}
|
- REDIS_URL=${REDIS_URL:-redis://redis:6379/0}
|
||||||
- RUN_EVENTS_STREAM_TTL_SECONDS=${RUN_EVENTS_STREAM_TTL_SECONDS:-7200}
|
- RUN_EVENTS_STREAM_TTL_SECONDS=${RUN_EVENTS_STREAM_TTL_SECONDS:-7200}
|
||||||
@ -94,8 +93,6 @@ services:
|
|||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
redis:
|
redis:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
milvus:
|
|
||||||
condition: service_healthy
|
|
||||||
minio:
|
minio:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|
||||||
@ -114,12 +111,13 @@ services:
|
|||||||
- app-network
|
- app-network
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- VITE_API_URL=http://api:5050
|
- VITE_LITE_MODE=${LITE_MODE:-}
|
||||||
- VITE_USE_RUNS_API=${VITE_USE_RUNS_API:-false}
|
|
||||||
command: nginx -g "daemon off;"
|
command: nginx -g "daemon off;"
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
graph:
|
graph:
|
||||||
|
profiles:
|
||||||
|
- full
|
||||||
image: neo4j:5.26
|
image: neo4j:5.26
|
||||||
container_name: graph
|
container_name: graph
|
||||||
volumes:
|
volumes:
|
||||||
@ -141,6 +139,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
etcd:
|
etcd:
|
||||||
|
profiles:
|
||||||
|
- full
|
||||||
container_name: milvus-etcd
|
container_name: milvus-etcd
|
||||||
image: quay.io/coreos/etcd:v3.5.5
|
image: quay.io/coreos/etcd:v3.5.5
|
||||||
environment:
|
environment:
|
||||||
@ -182,6 +182,8 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
milvus:
|
milvus:
|
||||||
|
profiles:
|
||||||
|
- full
|
||||||
image: milvusdb/milvus:v2.5.6
|
image: milvusdb/milvus:v2.5.6
|
||||||
container_name: milvus
|
container_name: milvus
|
||||||
command: ["milvus", "run", "standalone"]
|
command: ["milvus", "run", "standalone"]
|
||||||
@ -252,7 +254,7 @@ services:
|
|||||||
profiles:
|
profiles:
|
||||||
- all
|
- all
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env.prod
|
||||||
environment:
|
environment:
|
||||||
MINERU_MODEL_SOURCE: local
|
MINERU_MODEL_SOURCE: local
|
||||||
entrypoint: mineru-vllm-server
|
entrypoint: mineru-vllm-server
|
||||||
@ -285,7 +287,7 @@ services:
|
|||||||
profiles:
|
profiles:
|
||||||
- all
|
- all
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env.prod
|
||||||
ports:
|
ports:
|
||||||
- 30001:30001
|
- 30001:30001
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -11,13 +11,20 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
proxy_pass http://api:5050/api/; # 保持 /api/ 前缀
|
proxy_pass http://api:5050/api/;
|
||||||
proxy_set_header Host $host;
|
proxy_set_header Host $host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
proxy_set_header X-Forwarded-Proto $scheme;
|
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_read_timeout 600;
|
||||||
proxy_connect_timeout 600;
|
proxy_connect_timeout 600;
|
||||||
proxy_send_timeout 600;
|
proxy_send_timeout 600;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user