Commit 22ebfacb by Archer Committed by GitHub

perf: yml proxy (#6975)

* perf: deploy

* doc

* noproxy
parent 1058acd4
...@@ -47,6 +47,11 @@ x-log-config: &x-log-config ...@@ -47,6 +47,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
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
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
services: services:
# Vector DB # Vector DB
...@@ -181,7 +186,7 @@ services: ...@@ -181,7 +186,7 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -227,7 +232,8 @@ services: ...@@ -227,7 +232,8 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
- FASTGPT_ENDPOINT=http://fastgpt:3000 <<: [*x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
container_name: fastgpt-plugin container_name: fastgpt-plugin
...@@ -237,7 +243,7 @@ services: ...@@ -237,7 +243,7 @@ services:
networks: networks:
- fastgpt - fastgpt
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
...@@ -273,6 +279,7 @@ services: ...@@ -273,6 +279,7 @@ services:
- source: opensandbox-config - source: opensandbox-config
target: /etc/opensandbox/config.toml target: /etc/opensandbox/config.toml
environment: environment:
<<: [*x-no-proxy-config]
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health'] test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
...@@ -304,6 +311,7 @@ services: ...@@ -304,6 +311,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可) - /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
environment: environment:
<<: [*x-no-proxy-config]
PORT: 3000 PORT: 3000
VM_RUNTIME: docker VM_RUNTIME: docker
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
......
...@@ -47,6 +47,11 @@ x-log-config: &x-log-config ...@@ -47,6 +47,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
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
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
services: services:
# Vector DB # Vector DB
...@@ -181,7 +186,7 @@ services: ...@@ -181,7 +186,7 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -227,7 +232,8 @@ services: ...@@ -227,7 +232,8 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
- FASTGPT_ENDPOINT=http://fastgpt:3000 <<: [*x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
container_name: fastgpt-plugin container_name: fastgpt-plugin
...@@ -237,7 +243,7 @@ services: ...@@ -237,7 +243,7 @@ services:
networks: networks:
- fastgpt - fastgpt
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
...@@ -273,6 +279,7 @@ services: ...@@ -273,6 +279,7 @@ services:
- source: opensandbox-config - source: opensandbox-config
target: /etc/opensandbox/config.toml target: /etc/opensandbox/config.toml
environment: environment:
<<: [*x-no-proxy-config]
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health'] test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
...@@ -304,6 +311,7 @@ services: ...@@ -304,6 +311,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可) - /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
environment: environment:
<<: [*x-no-proxy-config]
PORT: 3000 PORT: 3000
VM_RUNTIME: docker VM_RUNTIME: docker
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
......
...@@ -47,6 +47,11 @@ x-log-config: &x-log-config ...@@ -47,6 +47,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
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
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
services: services:
# Vector DB # Vector DB
...@@ -181,7 +186,7 @@ services: ...@@ -181,7 +186,7 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -227,7 +232,8 @@ services: ...@@ -227,7 +232,8 @@ services:
- fastgpt - fastgpt
restart: always restart: always
environment: environment:
- FASTGPT_ENDPOINT=http://fastgpt:3000 <<: [*x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin: fastgpt-plugin:
image: ${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}} image: ${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}}
container_name: fastgpt-plugin container_name: fastgpt-plugin
...@@ -237,7 +243,7 @@ services: ...@@ -237,7 +243,7 @@ services:
networks: networks:
- fastgpt - fastgpt
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
...@@ -273,6 +279,7 @@ services: ...@@ -273,6 +279,7 @@ services:
- source: opensandbox-config - source: opensandbox-config
target: /etc/opensandbox/config.toml target: /etc/opensandbox/config.toml
environment: environment:
<<: [*x-no-proxy-config]
SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml SANDBOX_CONFIG_PATH: /etc/opensandbox/config.toml
healthcheck: healthcheck:
test: ['CMD', 'curl', '-f', 'http://localhost:8090/health'] test: ['CMD', 'curl', '-f', 'http://localhost:8090/health']
...@@ -304,6 +311,7 @@ services: ...@@ -304,6 +311,7 @@ services:
volumes: volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可) - /var/run/docker.sock:/var/run/docker.sock:ro # Docker 模式必须挂载(只读即可)
environment: environment:
<<: [*x-no-proxy-config]
PORT: 3000 PORT: 3000
VM_RUNTIME: docker VM_RUNTIME: docker
VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN VM_AUTH_TOKEN: *x-volume-manager-auth-token # 对应 AGENT_SANDBOX_VOLUME_MANAGER_TOKEN
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -155,7 +160,7 @@ ${{vec.db}} ...@@ -155,7 +160,7 @@ ${{vec.db}}
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -200,7 +205,7 @@ ${{vec.db}} ...@@ -200,7 +205,7 @@ ${{vec.db}}
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -251,7 +256,7 @@ ${{vec.db}} ...@@ -251,7 +256,7 @@ ${{vec.db}}
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}} image: ${{fastgpt-plugin.image}}:${{fastgpt-plugin.tag}}
...@@ -261,7 +266,7 @@ ${{vec.db}} ...@@ -261,7 +266,7 @@ ${{vec.db}}
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -212,7 +217,7 @@ services: ...@@ -212,7 +217,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -257,7 +262,7 @@ services: ...@@ -257,7 +262,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -308,7 +313,7 @@ services: ...@@ -308,7 +313,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -318,7 +323,7 @@ services: ...@@ -318,7 +323,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -190,7 +195,7 @@ services: ...@@ -190,7 +195,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -235,7 +240,7 @@ services: ...@@ -235,7 +240,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -286,7 +291,7 @@ services: ...@@ -286,7 +291,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -296,7 +301,7 @@ services: ...@@ -296,7 +301,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -174,7 +179,7 @@ services: ...@@ -174,7 +179,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -219,7 +224,7 @@ services: ...@@ -219,7 +224,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -270,7 +275,7 @@ services: ...@@ -270,7 +275,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -280,7 +285,7 @@ services: ...@@ -280,7 +285,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -172,7 +177,7 @@ services: ...@@ -172,7 +177,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -217,7 +222,7 @@ services: ...@@ -217,7 +222,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -268,7 +273,7 @@ services: ...@@ -268,7 +273,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -278,7 +283,7 @@ services: ...@@ -278,7 +283,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -177,7 +182,7 @@ services: ...@@ -177,7 +182,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -222,7 +227,7 @@ services: ...@@ -222,7 +227,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -273,7 +278,7 @@ services: ...@@ -273,7 +278,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -283,7 +288,7 @@ services: ...@@ -283,7 +288,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -156,7 +161,7 @@ services: ...@@ -156,7 +161,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -201,7 +206,7 @@ services: ...@@ -201,7 +206,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -252,7 +257,7 @@ services: ...@@ -252,7 +257,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.6.2
...@@ -262,7 +267,7 @@ services: ...@@ -262,7 +267,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -212,7 +217,7 @@ services: ...@@ -212,7 +217,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -257,7 +262,7 @@ services: ...@@ -257,7 +262,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -308,7 +313,7 @@ services: ...@@ -308,7 +313,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -318,7 +323,7 @@ services: ...@@ -318,7 +323,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -190,7 +195,7 @@ services: ...@@ -190,7 +195,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -235,7 +240,7 @@ services: ...@@ -235,7 +240,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -286,7 +291,7 @@ services: ...@@ -286,7 +291,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -296,7 +301,7 @@ services: ...@@ -296,7 +301,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -174,7 +179,7 @@ services: ...@@ -174,7 +179,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -219,7 +224,7 @@ services: ...@@ -219,7 +224,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -270,7 +275,7 @@ services: ...@@ -270,7 +275,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -280,7 +285,7 @@ services: ...@@ -280,7 +285,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -172,7 +177,7 @@ services: ...@@ -172,7 +177,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -217,7 +222,7 @@ services: ...@@ -217,7 +222,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -268,7 +273,7 @@ services: ...@@ -268,7 +273,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -278,7 +283,7 @@ services: ...@@ -278,7 +283,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -177,7 +182,7 @@ services: ...@@ -177,7 +182,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -222,7 +227,7 @@ services: ...@@ -222,7 +227,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -273,7 +278,7 @@ services: ...@@ -273,7 +278,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -283,7 +288,7 @@ services: ...@@ -283,7 +288,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
...@@ -36,6 +36,11 @@ x-log-config: &x-log-config ...@@ -36,6 +36,11 @@ x-log-config: &x-log-config
LOG_ENABLE_OTEL: false LOG_ENABLE_OTEL: false
LOG_OTEL_LEVEL: info LOG_OTEL_LEVEL: info
LOG_OTEL_URL: http://localhost:4318/v1/logs LOG_OTEL_URL: http://localhost:4318/v1/logs
# 容器运行环境可能会自动注入 HTTP_PROXY/HTTPS_PROXY。
# 明确绕过 compose 内部服务,避免内部请求被代理劫持。
x-no-proxy-config: &x-no-proxy-config
NO_PROXY: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
no_proxy: localhost,127.0.0.1,::1,fastgpt-plugin,fastgpt-code-sandbox,fastgpt-aiproxy,fastgpt-aiproxy-pg,fastgpt-minio,fastgpt-mongo,fastgpt-redis,fastgpt-vector,fastgpt-mcp-server,host.docker.internal,*.orb.internal,*.orb.local
# 向量库相关配置 # 向量库相关配置
x-vec-config: &x-vec-config x-vec-config: &x-vec-config
...@@ -156,7 +161,7 @@ services: ...@@ -156,7 +161,7 @@ services:
restart: always restart: always
environment: environment:
# 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template # 完整变量请参考: https://github.com/labring/FastGPT/blob/main/projects/app/.env.template
<<: [*x-share-db-config, *x-vec-config, *x-log-config] <<: [*x-share-db-config, *x-vec-config, *x-log-config, *x-no-proxy-config]
HOSTNAME: 0.0.0.0 HOSTNAME: 0.0.0.0
# ==================== 基础配置 ==================== # ==================== 基础配置 ====================
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。 # 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
...@@ -201,7 +206,7 @@ services: ...@@ -201,7 +206,7 @@ services:
- codesandbox - codesandbox
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox LOG_OTEL_SERVICE_NAME: fastgpt-code-sandbox
SANDBOX_TOKEN: *x-code-sandbox-token SANDBOX_TOKEN: *x-code-sandbox-token
# ===== Resource Limits ===== # ===== Resource Limits =====
...@@ -252,7 +257,7 @@ services: ...@@ -252,7 +257,7 @@ services:
- 3003:3000 - 3003:3000
restart: always restart: always
environment: environment:
<<: [*x-log-config] <<: [*x-log-config, *x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt-app:3000 FASTGPT_ENDPOINT: http://fastgpt-app:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v0.6.2 image: ghcr.io/labring/fastgpt-plugin:v0.6.2
...@@ -262,7 +267,7 @@ services: ...@@ -262,7 +267,7 @@ services:
- data - data
- app - app
environment: environment:
<<: [*x-share-db-config, *x-log-config] <<: [*x-share-db-config, *x-log-config, *x-no-proxy-config]
AUTH_TOKEN: *x-plugin-auth-token AUTH_TOKEN: *x-plugin-auth-token
# 工具网络请求,最大请求和响应体 # 工具网络请求,最大请求和响应体
SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10 SERVICE_REQUEST_MAX_CONTENT_LENGTH: 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment