mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-07 01:02:55 +08:00
fix: community version check
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user