* perf: health check

* doc
This commit is contained in:
Archer
2026-02-13 11:23:02 +08:00
committed by GitHub
parent 3096ac5fe6
commit e5a791e4f7
29 changed files with 322 additions and 564 deletions

View File

@@ -23,6 +23,13 @@ x-share-db-config: &x-share-db-config
STORAGE_S3_ENDPOINT: http://fastgpt-minio:9000 # 协议://域名(IP):端口
STORAGE_S3_FORCE_PATH_STYLE: true
STORAGE_S3_MAX_RETRIES: 3
# Log 配置
x-log-config: &x-log-config
LOG_ENABLE_CONSOLE: true
LOG_CONSOLE_LEVEL: debug
LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info
LOG_OTEL_URL: xxx/v1/logs
# 向量库相关配置
x-vec-config: &x-vec-config
@@ -147,7 +154,7 @@ services:
- vectorDB
restart: always
environment:
<<: [*x-share-db-config, *x-vec-config]
<<: [*x-share-db-config, *x-vec-config, *x-log-config]
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn不能填 localhost。这个值可以不填不填则发给模型的图片会是一个相对路径而不是全路径模型可能伪造Host。
FE_DOMAIN:
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
@@ -171,19 +178,8 @@ services:
# AI Proxy 的 Admin Token与 AI Proxy 中的环境变量 ADMIN_KEY
AIPROXY_API_TOKEN: *x-aiproxy-token
# 日志等级: debug, info, warn, error
# 是否开启控制台打印
LOG_ENABLE_CONSOLE: true
# 控制台打印最低日志等级
LOG_CONSOLE_LEVEL: debug
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL: false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL: info
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME: fastgpt-client
# 你的 OTLP 收集器的地址,不要把 /v1/logs 遗漏了
LOG_OTEL_URL: http://localhost:4318/v1/logs
# 工作流最大运行次数
WORKFLOW_MAX_RUN_TIMES: 1000
@@ -212,31 +208,23 @@ services:
- 3005:3000
restart: always
environment:
- FASTGPT_ENDPOINT=http://fastgpt:3000
<<: [*x-log-config]
FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.3
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.5.4
container_name: fastgpt-plugin
restart: always
networks:
- fastgpt
environment:
<<: *x-share-db-config
<<: [*x-share-db-config, *x-log-config]
AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
# 最大 API 请求体大小
MAX_API_SIZE: 10
# Log 配置
# 日志等级: debug, info, warn, error
LOG_LEVEL: info
# 是否开启控制台打印
LOG_ENABLE_CONSOLE: true
# 是否开启 OTEL 日志收集
LOG_ENABLE_OTEL: false
# OTEL 日志收集的最低日志等级
LOG_OTEL_LEVEL: info
# 传递给 OTLP 收集器的服务名称
LOG_OTEL_SERVICE_NAME: fastgpt-plugin
LOG_OTEL_URL: http://localhost:4318/v1/logs
depends_on:
fastgpt-minio:
condition: service_healthy