mirror of
https://github.com/labring/FastGPT.git
synced 2026-04-25 02:01:53 +08:00
fix: community version check
This commit is contained in:
@@ -193,7 +193,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -362,9 +362,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -373,7 +375,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -389,10 +391,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -458,6 +460,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -170,7 +170,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -339,9 +339,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -350,7 +352,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -366,10 +368,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -435,6 +437,11 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
init_sql:
|
||||
name: init_sql
|
||||
content: |
|
||||
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -151,7 +151,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -320,9 +320,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -331,7 +333,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -347,10 +349,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -416,6 +418,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -157,7 +157,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -326,9 +326,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -337,7 +339,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -353,10 +355,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -422,6 +424,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -135,7 +135,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -304,9 +304,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -315,7 +317,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -331,10 +333,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -400,6 +402,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -193,7 +193,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -362,9 +362,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -373,7 +375,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -389,10 +391,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -458,6 +460,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -170,7 +170,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -339,9 +339,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -350,7 +352,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -366,10 +368,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -435,6 +437,11 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
init_sql:
|
||||
name: init_sql
|
||||
content: |
|
||||
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -151,7 +151,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -320,9 +320,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -331,7 +333,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -347,10 +349,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -416,6 +418,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -157,7 +157,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -326,9 +326,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -337,7 +339,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -353,10 +355,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -422,6 +424,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -135,7 +135,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -304,9 +304,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -315,7 +317,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -331,10 +333,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -400,6 +402,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -79,7 +79,6 @@ const vector = {
|
||||
OCEANBASE_URL: mysql://root%40tenantname:tenantpassword@ob:2881/mysql
|
||||
`,
|
||||
extra: `\
|
||||
configs:
|
||||
init_sql:
|
||||
name: init_sql
|
||||
content: |
|
||||
|
||||
@@ -303,9 +303,11 @@ ${{vec.db}}
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -314,7 +316,7 @@ ${{vec.db}}
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -330,10 +332,10 @@ ${{vec.db}}
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -399,6 +401,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
${{vec.extra}}
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -10,12 +10,12 @@ description: 'FastGPT V4.14.10 更新说明'
|
||||
|
||||
## 升级指南
|
||||
|
||||
### 1. 增加沙盒配置
|
||||
### 1.
|
||||
|
||||
|
||||
## 🚀 新增内容
|
||||
|
||||
1. 增加 OpenSandbox docker 部署方案及适配,并支持通过挂载 volumn 进行数据持久化。
|
||||
1. 增加 OpenSandbox docker 部署方案及适配,并支持通过挂载 volume 进行数据持久化。
|
||||
2. 新增沙盒读取文件链接工具,可以直接让 AI 返回文件的访问链接。
|
||||
3. 飞书发布渠道,支持流输出。
|
||||
4. 目录最大上限,可通过环境变量配置。
|
||||
|
||||
@@ -220,7 +220,7 @@
|
||||
"document/content/docs/self-host/upgrading/4-14/4140.mdx": "2026-03-03T17:39:47+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/4141.en.mdx": "2026-03-03T17:39:47+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/4141.mdx": "2026-03-03T17:39:47+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/41410.mdx": "2026-03-31T17:02:56+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/41410.mdx": "2026-03-31T20:51:20+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/4142.en.mdx": "2026-03-03T17:39:47+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/4142.mdx": "2026-03-03T17:39:47+08:00",
|
||||
"document/content/docs/self-host/upgrading/4-14/4143.en.mdx": "2026-03-03T17:39:47+08:00",
|
||||
|
||||
@@ -193,7 +193,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -362,9 +362,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -373,7 +375,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -389,10 +391,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -458,6 +460,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -170,7 +170,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -339,9 +339,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -350,7 +352,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -366,10 +368,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -435,6 +437,11 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
init_sql:
|
||||
name: init_sql
|
||||
content: |
|
||||
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -151,7 +151,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -320,9 +320,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -331,7 +333,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -347,10 +349,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -416,6 +418,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -157,7 +157,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -326,9 +326,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -337,7 +339,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -353,10 +355,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -422,6 +424,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -135,7 +135,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5 # git
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -304,9 +304,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -315,7 +317,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -331,10 +333,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -400,6 +402,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -193,7 +193,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -362,9 +362,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -373,7 +375,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -389,10 +391,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -458,6 +460,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -170,7 +170,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -339,9 +339,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -350,7 +352,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -366,10 +368,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -435,6 +437,11 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
init_sql:
|
||||
name: init_sql
|
||||
content: |
|
||||
ALTER SYSTEM SET ob_vector_memory_limit_percentage = 30;
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -151,7 +151,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -320,9 +320,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -331,7 +333,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -347,10 +349,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -416,6 +418,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -157,7 +157,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -326,9 +326,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -337,7 +339,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -353,10 +355,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -422,6 +424,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -135,7 +135,7 @@ services:
|
||||
|
||||
fastgpt:
|
||||
container_name: fastgpt
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5 # git
|
||||
image: ghcr.io/labring/fastgpt:v4.14.9.5
|
||||
ports:
|
||||
- 3000:3000
|
||||
networks:
|
||||
@@ -304,9 +304,11 @@ services:
|
||||
# runtime=docker 模式需要挂载 Docker socket
|
||||
# 配置 docker.host_ip 为宿主机 LAN IP(容器内访问宿主机服务用)
|
||||
opensandbox-server:
|
||||
image: opensandbox/server:v0.1.9
|
||||
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server:v0.1.9
|
||||
container_name: opensandbox-server
|
||||
restart: always
|
||||
ports: # 生产环境建议不要暴露
|
||||
- 8090:8090
|
||||
networks:
|
||||
- fastgpt
|
||||
volumes:
|
||||
@@ -315,7 +317,7 @@ services:
|
||||
- source: opensandbox-config
|
||||
target: /etc/opensandbox/config.toml
|
||||
environment:
|
||||
- SANDBOX_CONFIG_PATH=/etc/opensandbox/config.toml
|
||||
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
|
||||
healthcheck:
|
||||
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
|
||||
interval: 10s
|
||||
@@ -331,10 +333,10 @@ services:
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
|
||||
environment:
|
||||
- VM_RUNTIME=docker
|
||||
- VM_AUTH_TOKEN=*x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
- VM_VOLUME_NAME_PREFIX=fastgpt-session # volume 名称前缀
|
||||
- VM_LOG_LEVEL=info
|
||||
VM_RUNTIME: docker
|
||||
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
VM_VOLUME_NAME_PREFIX: fastgpt-session # volume 名称前缀
|
||||
VM_LOG_LEVEL: info
|
||||
healthcheck:
|
||||
test:
|
||||
[
|
||||
@@ -400,6 +402,7 @@ networks:
|
||||
vector:
|
||||
|
||||
configs:
|
||||
|
||||
opensandbox-config:
|
||||
content: |
|
||||
[server]
|
||||
|
||||
@@ -61,7 +61,7 @@ const EditForm = ({
|
||||
const { t } = useTranslation();
|
||||
const { feConfigs } = useSystemStore();
|
||||
const { teamPlanStatus } = useUserStore();
|
||||
const enableSandbox = teamPlanStatus?.standard?.enableSandbox;
|
||||
const enableSandbox = !teamPlanStatus?.standard || !!teamPlanStatus?.standard?.enableSandbox;
|
||||
const showSandbox = feConfigs.show_agent_sandbox;
|
||||
|
||||
const selectDatasets = useMemo(() => appForm?.dataset?.datasets, [appForm]);
|
||||
|
||||
@@ -74,7 +74,7 @@ const EditForm = ({
|
||||
const { defaultModels, feConfigs } = useSystemStore();
|
||||
const showSandbox = feConfigs.show_agent_sandbox;
|
||||
const { teamPlanStatus } = useUserStore();
|
||||
const enableSandbox = !teamPlanStatus || !!teamPlanStatus?.standard?.enableSandbox;
|
||||
const enableSandbox = !teamPlanStatus?.standard || !!teamPlanStatus?.standard?.enableSandbox;
|
||||
const { appDetail } = useContextSelector(AppContext, (v) => v);
|
||||
const selectDatasets = useMemo(() => appForm?.dataset?.datasets, [appForm]);
|
||||
const [, startTst] = useTransition();
|
||||
|
||||
+1
-1
@@ -105,7 +105,7 @@ type Props = {
|
||||
const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props) => {
|
||||
const { feConfigs } = useSystemStore();
|
||||
const { teamPlanStatus } = useUserStore();
|
||||
const enableSandbox = teamPlanStatus?.standard?.enableSandbox;
|
||||
const enableSandbox = !teamPlanStatus?.standard || !!teamPlanStatus?.standard?.enableSandbox;
|
||||
const showSandbox = feConfigs.show_agent_sandbox;
|
||||
|
||||
const filterProInputs = useMemoEnhance(() => {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# 服务监听端口
|
||||
VM_PORT=3000
|
||||
PORT=3000
|
||||
# 复制为 .env 后修改
|
||||
|
||||
# 鉴权 Token(必填),FastGPT 侧对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
const schema = z.object({
|
||||
PORT: z.coerce.number().default(3000),
|
||||
VM_AUTH_TOKEN: z.string().min(1),
|
||||
VM_RUNTIME: z.enum(['docker', 'kubernetes']).default('kubernetes'),
|
||||
VM_DOCKER_SOCKET: z.string().default('/var/run/docker.sock'),
|
||||
@@ -8,7 +9,6 @@ const schema = z.object({
|
||||
VM_K8S_PVC_STORAGE_CLASS: z.string().default('standard'),
|
||||
VM_K8S_PVC_STORAGE_SIZE: z.string().default('1Gi'),
|
||||
VM_VOLUME_NAME_PREFIX: z.string().default('fastgpt-session'),
|
||||
VM_PORT: z.coerce.number().default(3001),
|
||||
VM_LOG_LEVEL: z.enum(['debug', 'info', 'none']).default('info')
|
||||
});
|
||||
|
||||
|
||||
@@ -27,7 +27,7 @@ app.use('/v1/*', async (c, next) => {
|
||||
app.route('/v1/volumes', volumeRoutes(service));
|
||||
|
||||
const server = Bun.serve({
|
||||
port: env.VM_PORT,
|
||||
port: env.PORT,
|
||||
fetch: app.fetch
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user