chore: 更新请求超时时间和Docker配置

将axios请求超时时间从50000毫秒调整为10000毫秒,优化请求响应速度。同时,更新Docker配置文件,添加容器重启策略和额外主机配置,提高服务稳定性和网络访问能力。
This commit is contained in:
zstar 2025-04-28 10:43:07 +08:00
parent e94697ec68
commit 94953687c1
4 changed files with 14 additions and 6 deletions

View File

@ -73,7 +73,7 @@ REDIS_PASSWORD=infini_rag_flow
SVR_HTTP_PORT=9380
# 镜像名称变更为zstar1003/ragflowplus:v0.2.1
# 镜像名称变更为zstar1003/ragflowplus:v0.2.1原始为infiniflow/ragflow:v0.18.0-slim
RAGFLOW_IMAGE=zstar1003/ragflowplus:v0.2.1
RAGFLOWPLUS_MANAGEMENT_WEB_IMAGE=zstar1003/ragflowplus-management-web:v0.2.1
RAGFLOWPLUS_MANAGEMENT_SERVER_IMAGE=zstar1003/ragflowplus-management-server:v0.2.1

View File

@ -42,6 +42,9 @@ services:
- API_BASE_URL=/api
networks:
- ragflow
restart: on-failure
extra_hosts:
- "host.docker.internal:host-gateway"
# 后台信息管理系统后端
management-backend:
@ -62,10 +65,11 @@ services:
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- ragflow
restart: on-failure
extra_hosts:
- "host.docker.internal:host-gateway"
# # vllm 嵌入模型
# vllm-bge:

View File

@ -42,6 +42,9 @@ services:
- API_BASE_URL=/api
networks:
- ragflow
restart: on-failure
extra_hosts:
- "host.docker.internal:host-gateway"
# 后台信息管理系统后端
management-backend:
@ -62,10 +65,11 @@ services:
- MANAGEMENT_ADMIN_USERNAME=${MANAGEMENT_ADMIN_USERNAME:-admin}
- MANAGEMENT_ADMIN_PASSWORD=${MANAGEMENT_ADMIN_PASSWORD:-12345678}
- MANAGEMENT_JWT_SECRET=${MANAGEMENT_JWT_SECRET:-12345678}
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- ragflow
restart: on-failure
extra_hosts:
- "host.docker.internal:host-gateway"
deploy:
resources:
reservations:

View File

@ -116,7 +116,7 @@ function createRequest(instance: AxiosInstance) {
// 请求体
data: {},
// 请求超时
timeout: 50000,
timeout: 10000,
// 跨域请求时是否携带 Cookies
withCredentials: false
}