mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-16 01:09:01 +08:00
update doc (#6823)
This commit is contained in:
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -43,7 +43,6 @@ x-log-config: &x-log-config
|
||||
x-vec-config: &x-vec-config
|
||||
MILVUS_ADDRESS: http://fastgpt-vector:19530
|
||||
MILVUS_TOKEN: none
|
||||
|
||||
|
||||
services:
|
||||
# Vector DB
|
||||
@@ -118,7 +117,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -192,7 +203,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -287,7 +298,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -332,12 +343,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -547,4 +559,3 @@ configs:
|
||||
|
||||
[ingress]
|
||||
mode = "direct"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -43,11 +43,10 @@ x-log-config: &x-log-config
|
||||
x-vec-config: &x-vec-config
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@fastgpt-vector:2881/mysql
|
||||
|
||||
|
||||
services:
|
||||
# Vector DB
|
||||
fastgpt-vector:
|
||||
image: oceanbase/oceanbase-ce:4.3.5-lts
|
||||
image: oceanbase/oceanbase-ce:4.3.5-lts
|
||||
container_name: fastgpt-ob
|
||||
restart: always
|
||||
# ports: # 生产环境建议不要暴露
|
||||
@@ -75,8 +74,8 @@ services:
|
||||
# obclient -h127.0.0.1 -P2881 -uroot@tenantname -ptenantpassword -e "SELECT 1;"
|
||||
test:
|
||||
[
|
||||
"CMD-SHELL",
|
||||
'obclient -h$${OB_SERVER_IP} -P2881 -uroot@$${OB_TENANT_NAME} -p$${OB_TENANT_PASSWORD} -e "SELECT 1;"',
|
||||
'CMD-SHELL',
|
||||
'obclient -h$${OB_SERVER_IP} -P2881 -uroot@$${OB_TENANT_NAME} -p$${OB_TENANT_PASSWORD} -e "SELECT 1;"'
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
@@ -96,7 +95,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -170,7 +181,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -265,7 +276,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -310,12 +321,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -529,4 +541,3 @@ configs:
|
||||
name: init_sql
|
||||
content: |
|
||||
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -54,9 +54,9 @@ services:
|
||||
- data
|
||||
environment:
|
||||
# 这里的配置只有首次运行生效。修改后,重启镜像是不会生效的。需要把持久化数据删除再重启,才有效果
|
||||
- GS_USERNAME=gaussdb # 默认会创建 gaussdb 用户
|
||||
- GS_PASSWORD=FastGPT@123 # 密码必须包含大写、小写、数字和特殊字符,且长度不少于8位
|
||||
- GS_DB=fastgpt # 默认会创建 postgres 数据库,这里以 fastgpt 为例
|
||||
- GS_USERNAME=gaussdb # 默认会创建 gaussdb 用户
|
||||
- GS_PASSWORD=FastGPT@123 # 密码必须包含大写、小写、数字和特殊字符,且长度不少于8位
|
||||
- GS_DB=fastgpt # 默认会创建 postgres 数据库,这里以 fastgpt 为例
|
||||
volumes:
|
||||
- ./opengauss/data:/var/lib/opengauss
|
||||
healthcheck:
|
||||
@@ -78,7 +78,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -152,7 +164,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -247,7 +259,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -292,12 +304,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -507,4 +520,3 @@ configs:
|
||||
|
||||
[ingress]
|
||||
mode = "direct"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -77,7 +77,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -151,7 +163,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -246,7 +258,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -291,12 +303,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -506,4 +519,3 @@ configs:
|
||||
|
||||
[ingress]
|
||||
mode = "direct"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -43,11 +43,10 @@ x-log-config: &x-log-config
|
||||
x-vec-config: &x-vec-config
|
||||
SEEKDB_URL: mysql://root:seekdbpassword@fastgpt-vector:2881/mysql
|
||||
|
||||
|
||||
services:
|
||||
# Vector DB
|
||||
fastgpt-vector:
|
||||
image: oceanbase/seekdb:1.0.1.0-100000392025122619
|
||||
image: oceanbase/seekdb:1.0.1.0-100000392025122619
|
||||
container_name: fastgpt-seekdb
|
||||
restart: always
|
||||
# ports: # 生产环境建议不要暴露
|
||||
@@ -83,7 +82,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -157,7 +168,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -252,7 +263,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -297,12 +308,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -512,4 +524,3 @@ configs:
|
||||
|
||||
[ingress]
|
||||
mode = "direct"
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ x-share-db-config: &x-share-db-config
|
||||
MONGODB_URI: mongodb://myusername:mypassword@fastgpt-mongo:27017/fastgpt?authSource=admin
|
||||
DB_MAX_LINK: 100
|
||||
REDIS_URL: redis://default:mypassword@fastgpt-redis:6379
|
||||
# @see https://doc.fastgpt.cn/docs/self-host/config/object-storage
|
||||
# @see https://doc.fastgpt.cn/self-host/config/object-storage
|
||||
STORAGE_VENDOR: minio # minio | aws-s3 | cos | oss
|
||||
STORAGE_REGION: us-east-1
|
||||
STORAGE_ACCESS_KEY_ID: minioadmin
|
||||
@@ -60,7 +60,19 @@ services:
|
||||
volumes:
|
||||
- fastgpt-mongo:/data/db
|
||||
healthcheck:
|
||||
test: ['CMD', 'mongo', '-u', 'myusername', '-p', 'mypassword', '--authenticationDatabase', 'admin', '--eval', "db.adminCommand('ping')"]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'mongo',
|
||||
'-u',
|
||||
'myusername',
|
||||
'-p',
|
||||
'mypassword',
|
||||
'--authenticationDatabase',
|
||||
'admin',
|
||||
'--eval',
|
||||
"db.adminCommand('ping')"
|
||||
]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
@@ -134,7 +146,7 @@ services:
|
||||
|
||||
fastgpt-app:
|
||||
container_name: fastgpt-app
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.15
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -229,7 +241,7 @@ services:
|
||||
LLM_REQUEST_TRACKING_RETENTION_HOURS: 6
|
||||
# ==================== 功能开关与特殊配置 ====================
|
||||
# 自定义跨域;不配置时默认允许所有跨域(逗号分割)
|
||||
ALLOWED_ORIGINS:
|
||||
ALLOWED_ORIGINS:
|
||||
# HTML 转 Markdown 最大字符数(超过后不执行转换)
|
||||
MAX_HTML_TRANSFORM_CHARS: 1000000
|
||||
volumes:
|
||||
@@ -274,12 +286,13 @@ services:
|
||||
# Python allowed modules whitelist (comma-separated)
|
||||
SANDBOX_PYTHON_ALLOWED_MODULES: math,cmath,decimal,fractions,random,statistics,collections,array,heapq,bisect,queue,copy,itertools,functools,operator,string,re,difflib,textwrap,unicodedata,codecs,datetime,time,calendar,_strptime,json,csv,base64,binascii,struct,hashlib,hmac,secrets,uuid,typing,abc,enum,dataclasses,contextlib,pprint,weakref,numpy,pandas,matplotlib
|
||||
healthcheck:
|
||||
test: [
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
test:
|
||||
[
|
||||
'CMD',
|
||||
'bun',
|
||||
'-e',
|
||||
"fetch('http://localhost:3000/health').then((res) => { if (!res.ok) throw new Error(String(res.status)); })"
|
||||
]
|
||||
interval: 30s
|
||||
timeout: 20s
|
||||
retries: 3
|
||||
@@ -489,4 +502,3 @@ configs:
|
||||
|
||||
[ingress]
|
||||
mode = "direct"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user