@@ -170,7 +170,7 @@ services:
170170
171171 fastgpt :
172172 container_name : fastgpt
173- image : registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
173+ image : registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
174174 ports :
175175 - 3000:3000
176176 networks :
@@ -339,9 +339,11 @@ services:
339339 # runtime=docker 模式需要挂载 Docker socket
340340 # 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
341341 opensandbox-server :
342- image : opensandbox/ server:v0.1.9
342+ image : registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox- server:v0.1.9
343343 container_name : opensandbox-server
344344 restart : always
345+ ports : # 生产环境建议不要暴露
346+ - 8090:8090
345347 networks :
346348 - fastgpt
347349 volumes :
@@ -350,7 +352,7 @@ services:
350352 - source : opensandbox-config
351353 target : /etc/opensandbox/config.toml
352354 environment :
353- - SANDBOX_CONFIG_PATH= /etc/opensandbox/config.toml
355+ SANDBOX_CONFIG_PATH : /etc/opensandbox/config.toml
354356 healthcheck :
355357 test : ['CMD', 'curl', '-f', 'http://localhost:8090/health']
356358 interval : 10s
@@ -366,10 +368,10 @@ services:
366368 volumes :
367369 - /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
368370 environment :
369- - VM_RUNTIME= docker
370- - VM_AUTH_TOKEN= *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
371- - VM_VOLUME_NAME_PREFIX= fastgpt-session # volume 名称前缀
372- - VM_LOG_LEVEL= info
371+ VM_RUNTIME : docker
372+ VM_AUTH_TOKEN : *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
373+ VM_VOLUME_NAME_PREFIX : fastgpt-session # volume 名称前缀
374+ VM_LOG_LEVEL : info
373375 healthcheck :
374376 test :
375377 [
@@ -435,6 +437,11 @@ networks:
435437 vector :
436438
437439configs :
440+ init_sql :
441+ name : init_sql
442+ content : |
443+ ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
444+
438445 opensandbox-config :
439446 content : |
440447 [server]
0 commit comments