|
9 | 9 | # - fastgpt-mcp-server: 3003 |
10 | 10 | # - fastgpt-plugin: 3004 |
11 | 11 | # - fastgpt-volume-manager: 3005 |
| 12 | +# - fastgpt-agent-sandbox-proxy: 1006 |
12 | 13 | # - opensandbox-server: 8090 |
13 | 14 | # - fastgpt-aiproxy: 3010 |
14 | 15 | # - fastgpt-aiproxy-pg: 5432 |
15 | 16 | # - 使用 pgvector 作为默认的向量库 |
16 | | -# - 配置 opensandbox-config 的 network_mode 为 docker 网络,如 dev_fastgpt |
17 | | -# - 配置 opensandbox-config 的 host_ip 为宿主机 LAN IP,如 192.168.1.100 |
| 17 | +# - fastgpt-agent-sandbox-proxy 通过端口映射暴露给浏览器,内部回源宿主机服务 |
18 | 18 |
|
19 | 19 | # plugin auth token |
20 | 20 | x-plugin-auth-token: &x-plugin-auth-token 'token' |
21 | 21 | # code sandbox token |
22 | 22 | x-code-sandbox-token: &x-code-sandbox-token 'codesandbox' |
23 | 23 | # volume manager auth token |
24 | 24 | x-volume-manager-auth-token: &x-volume-manager-auth-token 'vmtoken' |
| 25 | +# agent sandbox proxy secret, must match AGENT_SANDBOX_PROXY_SECRET in local FastGPT app |
| 26 | +x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret 'default_fastgpt_agent_sandbox_proxy_secret' |
25 | 27 | # aiproxy token |
26 | 28 | x-aiproxy-token: &x-aiproxy-token 'token' |
27 | 29 | # 数据库连接相关配置 |
@@ -50,8 +52,8 @@ x-log-config: &x-log-config |
50 | 52 | # 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。 |
51 | 53 | # 明确绕过 compose 内部服务,避免内部请求被代理劫持。 |
52 | 54 | x-no-proxy-config: &x-no-proxy-config |
53 | | - NO_PROXY: localhost,127.0.0.1,::1,fastgpt,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-pg,fastgpt-mcp-server,opensandbox-server,fastgpt-volume-manager,host.docker.internal,*.orb.internal,*.orb.local |
54 | | - no_proxy: localhost,127.0.0.1,::1,fastgpt,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-pg,fastgpt-mcp-server,opensandbox-server,fastgpt-volume-manager,host.docker.internal,*.orb.internal,*.orb.local |
| 55 | + NO_PROXY: localhost,127.0.0.1,::1,fastgpt,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-agent-sandbox-proxy,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-pg,fastgpt-mcp-server,opensandbox-server,fastgpt-volume-manager,host.docker.internal,*.orb.internal,*.orb.local |
| 56 | + no_proxy: localhost,127.0.0.1,::1,fastgpt,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-agent-sandbox-proxy,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-pg,fastgpt-mcp-server,opensandbox-server,fastgpt-volume-manager,host.docker.internal,*.orb.internal,*.orb.local |
55 | 57 |
|
56 | 58 | services: |
57 | 59 | # Vector DB |
@@ -233,6 +235,24 @@ services: |
233 | 235 | interval: 30s |
234 | 236 | timeout: 20s |
235 | 237 | retries: 3 |
| 238 | + fastgpt-agent-sandbox-proxy: |
| 239 | + container_name: fastgpt-agent-sandbox-proxy |
| 240 | + image: ghcr.io/labring/fastgpt-agent-sandbox-proxy:v0.2.0-beta1 |
| 241 | + ports: |
| 242 | + - 1006:1006 |
| 243 | + networks: |
| 244 | + - fastgpt |
| 245 | + restart: always |
| 246 | + extra_hosts: |
| 247 | + - 'host.docker.internal:host-gateway' |
| 248 | + environment: |
| 249 | + <<: [*x-no-proxy-config] |
| 250 | + PORT: 1006 |
| 251 | + # dev compose 不包含 FastGPT 主站,默认回调宿主机本地启动的 app。 |
| 252 | + FASTGPT_APP_URL: http://host.docker.internal:3000 |
| 253 | + # 主站返回 localhost upstream endpoint 时,proxy 容器需要改写为宿主机别名再连接。 |
| 254 | + AGENT_SANDBOX_PROXY_REWRITE_HOST: host.docker.internal |
| 255 | + AGENT_SANDBOX_PROXY_SECRET: *x-agent-sandbox-proxy-secret |
236 | 256 | fastgpt-mcp-server: |
237 | 257 | container_name: fastgpt-mcp-server |
238 | 258 | image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.15.0-beta1 |
@@ -298,7 +318,7 @@ services: |
298 | 318 | retries: 5 |
299 | 319 | # Pre-pull only: not started by `docker compose up` (uses profile `prepull`). |
300 | 320 | opensandbox-agent-sandbox-image: |
301 | | - image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 |
| 321 | + image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0-beta1 |
302 | 322 | profiles: |
303 | 323 | - prepull |
304 | 324 | opensandbox-execd-image: |
|
0 commit comments