Commit 4066f3c1 by Archer Committed by GitHub

Deplot doc (#7251)

* doc

* doc

* doc
parent a0aec83f
...@@ -40,7 +40,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b ...@@ -40,7 +40,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
```bash ```bash
# 输入命令拉取配置文件 # 输入命令拉取配置文件
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# 启动 # 启动
docker compose up -d docker compose up -d
``` ```
......
...@@ -40,7 +40,7 @@ You can quickly start FastGPT using Docker. Run the following command in your te ...@@ -40,7 +40,7 @@ You can quickly start FastGPT using Docker. Run the following command in your te
```bash ```bash
# Run the command to pull the configuration file # Run the command to pull the configuration file
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# Start the service # Start the service
docker compose up -d docker compose up -d
``` ```
......
...@@ -40,7 +40,7 @@ Anda dapat memulai FastGPT dengan cepat menggunakan Docker. Jalankan perintah be ...@@ -40,7 +40,7 @@ Anda dapat memulai FastGPT dengan cepat menggunakan Docker. Jalankan perintah be
```bash ```bash
# Jalankan perintah untuk menarik file konfigurasi # Jalankan perintah untuk menarik file konfigurasi
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# Jalankan layanan # Jalankan layanan
docker compose up -d docker compose up -d
``` ```
......
...@@ -40,7 +40,7 @@ Docker を使って FastGPT をすぐに起動できます。ターミナルで ...@@ -40,7 +40,7 @@ Docker を使って FastGPT をすぐに起動できます。ターミナルで
```bash ```bash
# コマンドを実行して設定ファイルを取得 # コマンドを実行して設定ファイルを取得
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# サービスを起動 # サービスを起動
docker compose up -d docker compose up -d
``` ```
......
...@@ -40,7 +40,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b ...@@ -40,7 +40,7 @@ https://github.com/labring/FastGPT/assets/15308462/7d3a38df-eb0e-4388-9250-2409b
```bash ```bash
# รันคำสั่งเพื่อดึงไฟล์การกำหนดค่า # รันคำสั่งเพื่อดึงไฟล์การกำหนดค่า
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# เริ่มบริการ # เริ่มบริการ
docker compose up -d docker compose up -d
``` ```
......
...@@ -40,7 +40,7 @@ Bạn có thể khởi động FastGPT nhanh chóng bằng Docker. Chạy lệnh ...@@ -40,7 +40,7 @@ Bạn có thể khởi động FastGPT nhanh chóng bằng Docker. Chạy lệnh
```bash ```bash
# Chạy lệnh để tải file cấu hình # Chạy lệnh để tải file cấu hình
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.io/deploy/install.sh)
# Khởi động dịch vụ # Khởi động dịch vụ
docker compose up -d docker compose up -d
``` ```
......
...@@ -245,7 +245,7 @@ services: ...@@ -245,7 +245,7 @@ services:
<<: [*x-no-proxy-config] <<: [*x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt:3000 FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin: fastgpt-plugin:
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
ports: ports:
......
...@@ -245,7 +245,7 @@ services: ...@@ -245,7 +245,7 @@ services:
<<: [*x-no-proxy-config] <<: [*x-no-proxy-config]
FASTGPT_ENDPOINT: http://fastgpt:3000 FASTGPT_ENDPOINT: http://fastgpt:3000
fastgpt-plugin: fastgpt-plugin:
image: ghcr.io/labring/fastgpt-plugin:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
ports: ports:
......
...@@ -112,7 +112,7 @@ const syncInstallScriptVersions = async (deployVersions) => { ...@@ -112,7 +112,7 @@ const syncInstallScriptVersions = async (deployVersions) => {
* `deploy/templates/vector/config.json` 维护向量库输出文件名、服务片段、连接配置 * `deploy/templates/vector/config.json` 维护向量库输出文件名、服务片段、连接配置
* 和额外 configs。版本模板只通过 `${{vec.*}}` 引用这些共享片段。 * 和额外 configs。版本模板只通过 `${{vec.*}}` 引用这些共享片段。
* *
* @returns {Promise<Record<string, { filename: string, db: string, config: string, extra: string }>>} * @returns {Promise<Record<string, { filename: string, db: string, config: string, extra: string, depends: string }>>}
*/ */
const loadVectorConfigs = async () => { const loadVectorConfigs = async () => {
const vectorRoot = path.join(process.cwd(), 'templates', 'vector'); const vectorRoot = path.join(process.cwd(), 'templates', 'vector');
...@@ -134,7 +134,8 @@ const loadVectorConfigs = async () => { ...@@ -134,7 +134,8 @@ const loadVectorConfigs = async () => {
filename: config.filename, filename: config.filename,
db: await readOptionalFile(config.dbFile), db: await readOptionalFile(config.dbFile),
config: await readOptionalFile(config.configFile), config: await readOptionalFile(config.configFile),
extra: await readOptionalFile(config.extraFile) extra: await readOptionalFile(config.extraFile),
depends: config.dbFile ? ' fastgpt-vector:\n condition: service_healthy' : ''
}; };
vectors[name].extraBlock = vectors[name].extra ? `configs:\n ${vectors[name].extra}` : ''; vectors[name].extraBlock = vectors[name].extra ? `configs:\n ${vectors[name].extra}` : '';
} }
...@@ -184,32 +185,56 @@ const loadArgs = (version) => { ...@@ -184,32 +185,56 @@ const loadArgs = (version) => {
* @param {RegionEnum} region * @param {RegionEnum} region
* @param {string | undefined} vec * @param {string | undefined} vec
* @param {Record<Services, ArgItemType>} args * @param {Record<Services, ArgItemType>} args
* @param {Record<string, { filename: string, db: string, config: string, extra: string, extraBlock: string }>} vectors * @param {Record<string, { filename: string, db: string, config: string, extra: string, extraBlock: string, depends: string }>} vectors
* @param {string} context
* @returns {string} * @returns {string}
*/ */
const replace = (source, region, vec, args, vectors) => { const replace = (source, region, vec, args, vectors, context) => {
const formatExpr = (expr) => '${{' + expr + '}}';
const resolveExpr = (expr) => { const resolveExpr = (expr) => {
/** /**
* @type {String} * @type {String}
*/ */
const [a, b] = expr.split('.'); const [a, b] = expr.trim().split('.');
if (a === 'vec') { if (a === 'vec') {
if (!vectors[vec]) { if (!vectors[vec]) {
throw new Error(`Unknown vector config: ${vec}`); throw new Error(`Unknown vector config: ${vec} in ${context}`);
} }
if (b === 'db') { if (b === 'db') {
return replace(vectors[vec].db, region, vec, args, vectors); return replace(vectors[vec].db, region, vec, args, vectors, `${context} -> vec.db`);
} else { } else {
return vectors[vec][b]; const value = vectors[vec][b];
if (value === undefined) {
throw new Error(`Unknown vector expression: ${formatExpr(expr)} in ${context}`);
}
return value;
} }
} }
const arg = args[a];
if (!arg) {
throw new Error(
`Missing deploy arg "${a}" for ${formatExpr(expr)} in ${context}. ` +
`Please add it to args.json or remove the placeholder from the template.`
);
}
if (b === 'tag') { if (b === 'tag') {
return args[a].tag; if (!arg.tag) {
throw new Error(`Missing deploy tag "${a}" for ${formatExpr(expr)} in ${context}`);
}
return arg.tag;
} else if (b === 'image') { } else if (b === 'image') {
return args[a].image[region]; const image = arg.image?.[region];
if (!image) {
throw new Error(`Missing deploy image "${a}.${region}" for ${formatExpr(expr)} in ${context}`);
}
return image;
} }
throw new Error(`Unknown template expression: ${formatExpr(expr)} in ${context}`);
}; };
return source return source
...@@ -235,11 +260,11 @@ const generateDevFile = async (deployVersions, vectors) => { ...@@ -235,11 +260,11 @@ const generateDevFile = async (deployVersions, vectors) => {
await Promise.all([ await Promise.all([
fs.promises.writeFile( fs.promises.writeFile(
path.join(process.cwd(), 'dev', 'docker-compose.cn.yml'), path.join(process.cwd(), 'dev', 'docker-compose.cn.yml'),
formatYamlOutput(replace(template, 'cn', undefined, args, vectors)) formatYamlOutput(replace(template, 'cn', undefined, args, vectors, 'dev/docker-compose.cn.yml'))
), ),
fs.promises.writeFile( fs.promises.writeFile(
path.join(process.cwd(), 'dev', 'docker-compose.yml'), path.join(process.cwd(), 'dev', 'docker-compose.yml'),
formatYamlOutput(replace(template, 'global', undefined, args, vectors)) formatYamlOutput(replace(template, 'global', undefined, args, vectors, 'dev/docker-compose.yml'))
) )
]); ]);
...@@ -286,7 +311,14 @@ const generateProdFile = async (deployVersions, vectors) => { ...@@ -286,7 +311,14 @@ const generateProdFile = async (deployVersions, vectors) => {
fs.promises.writeFile( fs.promises.writeFile(
path.join(outputRoot, version, region, `docker-compose.${filename}.yml`), path.join(outputRoot, version, region, `docker-compose.${filename}.yml`),
formatYamlOutput( formatYamlOutput(
replace(versionTemplates[version], region, vector, versionArgs[version], vectors) replace(
versionTemplates[version],
region,
vector,
versionArgs[version],
vectors,
`${version}/${region}/docker-compose.${filename}.yml`
)
) )
) )
) )
......
{ {
"tags": { "tags": {
"fastgpt": "v4.15.0", "fastgpt": "v4.15.1",
"fastgpt-plugin": "v1.0.1",
"fastgpt-code-sandbox": "v4.15.0", "fastgpt-code-sandbox": "v4.15.0",
"fastgpt-plugin": "v1.0.0",
"volume-manager": "v0.2.0",
"agent-sandbox-image": "v0.2.0",
"aiproxy": "v0.6.5",
"fastgpt-mcp_server": "v4.14.23", "fastgpt-mcp_server": "v4.14.23",
"volume-manager": "v0.2.0",
"agent-sandbox-image": "v0.2.0",
"opensandbox-server": "v0.1.9", "opensandbox-server": "v0.1.9",
"opensandbox-execd": "v1.0.7", "opensandbox-execd": "v1.0.7",
"opensandbox-egress": "v1.0.3", "opensandbox-egress": "v1.0.3",
"aiproxy": "v0.6.5",
"aiproxy-pg": "0.8.0-pg15", "aiproxy-pg": "0.8.0-pg15",
"mongo": "5.0.32", "mongo": "5.0.32",
"redis": "7.2-alpine", "redis": "7.2-alpine",
"minio": "RELEASE.2025-09-07T16-13-09Z", "minio": "RELEASE.2025-09-07T16-13-09Z",
......
...@@ -146,8 +146,7 @@ services: ...@@ -146,8 +146,7 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector: # ${{vec.depends}}
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -174,7 +173,6 @@ services: ...@@ -174,7 +173,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -366,6 +364,8 @@ services: ...@@ -366,6 +364,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
{ {
"tags": { "tags": {
"fastgpt": "v4.15.0", "fastgpt": "v4.15.1",
"fastgpt-plugin": "v1.0.1",
"fastgpt-code-sandbox": "v4.15.0", "fastgpt-code-sandbox": "v4.15.0",
"fastgpt-plugin": "v1.0.0",
"volume-manager": "v0.2.0",
"agent-sandbox-image": "v0.2.0",
"agent-sandbox-proxy": "v0.2.0",
"aiproxy": "v0.6.5",
"fastgpt-mcp_server": "v4.14.23", "fastgpt-mcp_server": "v4.14.23",
"aiproxy": "v0.6.5",
"aiproxy-pg": "0.8.0-pg15", "aiproxy-pg": "0.8.0-pg15",
"mongo": "5.0.32", "mongo": "5.0.32",
"redis": "7.2-alpine", "redis": "7.2-alpine",
"minio": "RELEASE.2025-09-07T16-13-09Z", "minio": "RELEASE.2025-09-07T16-13-09Z",
...@@ -26,12 +25,6 @@ ...@@ -26,12 +25,6 @@
"fastgpt-plugin": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin", "fastgpt-plugin": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin",
"fastgpt-code-sandbox": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-code-sandbox", "fastgpt-code-sandbox": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-code-sandbox",
"fastgpt-mcp_server": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server", "fastgpt-mcp_server": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server",
"volume-manager": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-volume-manager",
"agent-sandbox-image": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox",
"agent-sandbox-proxy": "registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox-proxy",
"opensandbox-server": "registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-server",
"opensandbox-execd": "registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-execd",
"opensandbox-egress": "registry.cn-hangzhou.aliyuncs.com/fastgpt/opensandbox-egress",
"aiproxy": "registry.cn-hangzhou.aliyuncs.com/labring/aiproxy", "aiproxy": "registry.cn-hangzhou.aliyuncs.com/labring/aiproxy",
"aiproxy-pg": "registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector", "aiproxy-pg": "registry.cn-hangzhou.aliyuncs.com/fastgpt/pgvector",
"mongo": "registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo", "mongo": "registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo",
...@@ -49,12 +42,6 @@ ...@@ -49,12 +42,6 @@
"fastgpt-plugin": "ghcr.io/labring/fastgpt-plugin", "fastgpt-plugin": "ghcr.io/labring/fastgpt-plugin",
"fastgpt-code-sandbox": "ghcr.io/labring/fastgpt-code-sandbox", "fastgpt-code-sandbox": "ghcr.io/labring/fastgpt-code-sandbox",
"fastgpt-mcp_server": "ghcr.io/labring/fastgpt-mcp_server", "fastgpt-mcp_server": "ghcr.io/labring/fastgpt-mcp_server",
"volume-manager": "ghcr.io/labring/fastgpt-agent-volume-manager",
"agent-sandbox-image": "ghcr.io/labring/fastgpt-agent-sandbox",
"agent-sandbox-proxy": "ghcr.io/labring/fastgpt-agent-sandbox-proxy",
"opensandbox-server": "opensandbox/server",
"opensandbox-execd": "opensandbox/execd",
"opensandbox-egress": "opensandbox/egress",
"aiproxy": "ghcr.io/labring/aiproxy", "aiproxy": "ghcr.io/labring/aiproxy",
"aiproxy-pg": "pgvector/pgvector", "aiproxy-pg": "pgvector/pgvector",
"mongo": "mongo", "mongo": "mongo",
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ${{agent-sandbox-image.image}} AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: ${{agent-sandbox-image.tag}} AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ${{agent-sandbox-image.image}}:${{agent-sandbox-image.tag}} AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
......
'use client';
import { useEffect, useRef } from 'react';
const DEFAULT_DOC_ORIGIN = 'https://doc.fastgpt.cn';
type CurrentOriginCodeBlockUpdaterProps = {
fallbackOrigin?: string;
};
/**
* 在浏览器端把紧邻的 Fumadocs 代码块里的默认文档域名替换为当前访问域名。
* 这样代码块仍由 MDX/Shiki/Fumadocs 渲染,保留原生样式、高亮和复制按钮。
*/
export function CurrentOriginCodeBlockUpdater({
fallbackOrigin = DEFAULT_DOC_ORIGIN
}: CurrentOriginCodeBlockUpdaterProps) {
const markerRef = useRef<HTMLSpanElement>(null);
useEffect(() => {
const codeBlock = markerRef.current?.previousElementSibling;
if (!codeBlock) return;
const currentOrigin = window.location.origin.replace(/\/$/, '');
const fallback = fallbackOrigin.replace(/\/$/, '');
codeBlock.querySelectorAll('span, code').forEach((node) => {
if (!node.textContent?.includes(fallback)) return;
node.childNodes.forEach((child) => {
if (child.nodeType === Node.TEXT_NODE && child.textContent?.includes(fallback)) {
child.textContent = child.textContent.replaceAll(fallback, currentOrigin);
}
});
});
}, [fallbackOrigin]);
return <span ref={markerRef} data-current-origin-code-block-updater hidden />;
}
...@@ -4,6 +4,7 @@ description: Quickly deploy FastGPT using Docker Compose ...@@ -4,6 +4,7 @@ description: Quickly deploy FastGPT using Docker Compose
--- ---
import { Alert } from '@/components/docs/Alert'; import { Alert } from '@/components/docs/Alert';
import { CurrentOriginCodeBlockUpdater } from '@/components/docs/CurrentOriginCodeBlockUpdater';
## Prerequisites ## Prerequisites
...@@ -116,7 +117,17 @@ Or [install the command-line version of Docker directly in WSL 2](https://nickja ...@@ -116,7 +117,17 @@ Or [install the command-line version of Docker directly in WSL 2](https://nickja
### 1. Get Configuration Files ### 1. Get Configuration Files
#### Method 1: Interactive Script Deployment #### Method 1: Deploy with an AI Agent
Copy the following content to your Coding Agent:
```text
Refer to https://doc.fastgpt.cn/deploy/SKILL.md and deploy FastGPT with Docker for me.
```
<CurrentOriginCodeBlockUpdater />
#### Method 2: Interactive Script Deployment
Run in Linux/MacOS/Windows WSL. The script guides you through selecting deployment environment, vector database version, IP address, etc. Run in Linux/MacOS/Windows WSL. The script guides you through selecting deployment environment, vector database version, IP address, etc.
...@@ -124,9 +135,11 @@ Run in Linux/MacOS/Windows WSL. The script guides you through selecting deployme ...@@ -124,9 +135,11 @@ Run in Linux/MacOS/Windows WSL. The script guides you through selecting deployme
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh)
``` ```
<CurrentOriginCodeBlockUpdater />
The script automatically: The script automatically:
- Downloads or copies `docker-compose.yml`, and downloads `config.json`. - Downloads or copies `docker-compose.yml`.
- Guides you through selecting externally accessible S3 and MCP addresses, then writes them into the config files. - Guides you through selecting externally accessible S3 and MCP addresses, then writes them into the config files.
- Generates a random `root` login password, service tokens, app keys, and component passwords, then writes them into `docker-compose.yml`. - Generates a random `root` login password, service tokens, app keys, and component passwords, then writes them into `docker-compose.yml`.
- Detects the host Docker socket path and updates the mount path in `docker-compose.yml` when needed. - Detects the host Docker socket path and updates the mount path in `docker-compose.yml` when needed.
...@@ -139,7 +152,9 @@ To use an existing local `docker-compose.yml` file, for example when testing a v ...@@ -139,7 +152,9 @@ To use an existing local `docker-compose.yml` file, for example when testing a v
FASTGPT_LOCAL_COMPOSE_PATH=/path/to/docker-compose.yml bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) FASTGPT_LOCAL_COMPOSE_PATH=/path/to/docker-compose.yml bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh)
``` ```
#### Method 2: Manual Download <CurrentOriginCodeBlockUpdater />
#### Method 3: Manual Download
If you need to pin deployment to a specific `docker-compose.yml` file, we recommend downloading both `docker-compose.yml` and `install.sh`, then using the script's local compose mode to generate the final config. This keeps the script's random credential generation, S3/MCP address updates, and Docker socket detection. If you need to pin deployment to a specific `docker-compose.yml` file, we recommend downloading both `docker-compose.yml` and `install.sh`, then using the script's local compose mode to generate the final config. This keeps the script's random credential generation, S3/MCP address updates, and Docker socket detection.
...@@ -176,15 +191,17 @@ curl -fsSL https://doc.fastgpt.cn/deploy/docker/v4.15/cn/docker-compose.pg.yml - ...@@ -176,15 +191,17 @@ curl -fsSL https://doc.fastgpt.cn/deploy/docker/v4.15/cn/docker-compose.pg.yml -
curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh
``` ```
<CurrentOriginCodeBlockUpdater />
3. Run `install.sh` with the local compose file to generate the final deployment config: 3. Run `install.sh` with the local compose file to generate the final deployment config:
```bash ```bash
FASTGPT_LOCAL_COMPOSE_PATH=./docker-compose.source.yml bash install.sh FASTGPT_LOCAL_COMPOSE_PATH=./docker-compose.source.yml bash install.sh
``` ```
The script copies this compose file to the final `docker-compose.yml`, then downloads `config.json`, generates login passwords and credentials, and writes the S3/MCP addresses. After generation, log in with the root password printed in the terminal. The script copies this compose file to the final `docker-compose.yml`, then generates login passwords and credentials, and writes the S3/MCP addresses. After generation, log in with the root password printed in the terminal.
For a fully offline environment, prepare `docker-compose.yml`, `config.json`, and `install.sh` in advance. If the script cannot download `config.json`, manually update `DEFAULT_ROOT_PSW`, service tokens, database passwords, and S3/MCP addresses. For a fully offline environment, prepare `docker-compose.yml` and `install.sh` in advance. If the script cannot run, manually update `DEFAULT_ROOT_PSW`, service tokens, database passwords, and S3/MCP addresses.
#### Deploy with a Custom Image Registry #### Deploy with a Custom Image Registry
......
...@@ -4,6 +4,7 @@ description: 使用 Docker Compose 快速部署 FastGPT ...@@ -4,6 +4,7 @@ description: 使用 Docker Compose 快速部署 FastGPT
--- ---
import { Alert } from '@/components/docs/Alert'; import { Alert } from '@/components/docs/Alert';
import { CurrentOriginCodeBlockUpdater } from '@/components/docs/CurrentOriginCodeBlockUpdater';
## 前置知识 ## 前置知识
...@@ -116,7 +117,17 @@ brew install orbstack ...@@ -116,7 +117,17 @@ brew install orbstack
### 1. 获取配置文件 ### 1. 获取配置文件
#### 方法一:使用交互式脚本部署 #### 方法一:使用 AI Agent 代部署
将以下内容复制给你的 Coding Agent:
```text
参考 https://doc.fastgpt.cn/deploy/SKILL.md 帮我部署 FastGPT Docker 版本。
```
<CurrentOriginCodeBlockUpdater />
#### 方法二:使用交互式脚本部署
需要在 Linux/MacOS/Windows WSL 环境下执行,引导用户选择部署环境、向量库版本,IP 地址等。 需要在 Linux/MacOS/Windows WSL 环境下执行,引导用户选择部署环境、向量库版本,IP 地址等。
...@@ -124,16 +135,18 @@ brew install orbstack ...@@ -124,16 +135,18 @@ brew install orbstack
bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh) bash <(curl -fsSL https://doc.fastgpt.cn/deploy/install.sh)
``` ```
<CurrentOriginCodeBlockUpdater />
脚本会自动完成以下操作: 脚本会自动完成以下操作:
- 下载或复制 `docker-compose.yml`,并下载 `config.json` - 下载或复制 `docker-compose.yml`。
- 引导选择 S3 与 MCP 的外部访问地址,并写入配置文件。 - 引导选择 S3 与 MCP 的外部访问地址,并写入配置文件。
- 随机生成 `root` 登录密码、服务间 Token、应用密钥和组件密码,并写入 `docker-compose.yml`。 - 随机生成 `root` 登录密码、服务间 Token、应用密钥和组件密码,并写入 `docker-compose.yml`。
- 自动检测宿主机 Docker socket 路径,必要时替换 `docker-compose.yml` 中的挂载路径。 - 自动检测宿主机 Docker socket 路径,必要时替换 `docker-compose.yml` 中的挂载路径。
执行完成后,终端会输出本次生成的 `root` 登录密码,请妥善保存生成后的 `docker-compose.yml`。后续升级时建议基于该文件调整,不要直接丢失已生成的密码和密钥。 执行完成后,终端会输出本次生成的 `root` 登录密码,请妥善保存生成后的 `docker-compose.yml`。后续升级时建议基于该文件调整,不要直接丢失已生成的密码和密钥。
#### 方法:手动下载部署 #### 方法:手动下载部署
如果需要固定使用某个 `docker-compose.yml` 文件,推荐先手动下载 `docker-compose.yml` 和 `install.sh`,再通过 `install.sh` 的本地 compose 模式生成最终配置。这样仍然可以复用脚本里的随机密码、S3/MCP 地址写入、Docker socket 检测等能力。 如果需要固定使用某个 `docker-compose.yml` 文件,推荐先手动下载 `docker-compose.yml` 和 `install.sh`,再通过 `install.sh` 的本地 compose 模式生成最终配置。这样仍然可以复用脚本里的随机密码、S3/MCP 地址写入、Docker socket 检测等能力。
...@@ -170,15 +183,17 @@ curl -fsSL https://doc.fastgpt.cn/deploy/docker/v4.15/cn/docker-compose.pg.yml - ...@@ -170,15 +183,17 @@ curl -fsSL https://doc.fastgpt.cn/deploy/docker/v4.15/cn/docker-compose.pg.yml -
curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh
``` ```
<CurrentOriginCodeBlockUpdater />
3. 使用 `install.sh` 读取本地 compose 文件并生成最终部署配置: 3. 使用 `install.sh` 读取本地 compose 文件并生成最终部署配置:
```bash ```bash
FASTGPT_LOCAL_COMPOSE_PATH=./docker-compose.source.yml bash install.sh FASTGPT_LOCAL_COMPOSE_PATH=./docker-compose.source.yml bash install.sh
``` ```
脚本会复制该 compose 文件为最终的 `docker-compose.yml`,并继续下载 `config.json`、随机生成登录密码和各类凭证、写入 S3/MCP 地址。生成完成后,按终端输出的 root 密码登录。 脚本会复制该 compose 文件为最终的 `docker-compose.yml`,并继续随机生成登录密码和各类凭证、写入 S3/MCP 地址。生成完成后,按终端输出的 root 密码登录。
完全离线环境下,需要同时准备 `docker-compose.yml`、`config.json` 和 `install.sh`。如果无法让脚本下载 `config.json`,则需要手动修改 `DEFAULT_ROOT_PSW`、服务 Token、数据库密码、S3/MCP 地址等配置。 完全离线环境下,需要同时准备 `docker-compose.yml` 和 `install.sh`。如果无法运行脚本,则需要手动修改 `DEFAULT_ROOT_PSW`、服务 Token、数据库密码、S3/MCP 地址等配置。
#### 自定义镜像源部署 #### 自定义镜像源部署
......
...@@ -5,7 +5,7 @@ description: 'FastGPT V4.15.1 Release Notes' ...@@ -5,7 +5,7 @@ description: 'FastGPT V4.15.1 Release Notes'
## 📦 Upgrade Guide ## 📦 Upgrade Guide
### fastgpt-pro Environment Variable Updates ### 1. fastgpt-pro Environment Variable Updates
Starting from v4.15.1, the FastGPT main app no longer uses `rootkey` when calling Pro/Admin internal APIs. These internal service-to-service calls now use a dedicated `PRO_TOKEN`. `FE_DOMAIN` is also required. If you deploy the Pro edition, configure the same `PRO_TOKEN` in both the FastGPT main app and the Pro/Admin service: Starting from v4.15.1, the FastGPT main app no longer uses `rootkey` when calling Pro/Admin internal APIs. These internal service-to-service calls now use a dedicated `PRO_TOKEN`. `FE_DOMAIN` is also required. If you deploy the Pro edition, configure the same `PRO_TOKEN` in both the FastGPT main app and the Pro/Admin service:
...@@ -22,7 +22,13 @@ Notes: ...@@ -22,7 +22,13 @@ Notes:
4. `rootkey` is no longer used as the credential for FastGPT main app calls to Pro/Admin internal APIs. It is only the admin secret for the current system and is used to call `/api/admin/**` APIs, such as the initialization script below. 4. `rootkey` is no longer used as the credential for FastGPT main app calls to Pro/Admin internal APIs. It is only the admin secret for the current system and is used to call `/api/admin/**` APIs, such as the initialization script below.
5. Open-source deployment files do not include `PRO_TOKEN`. For Pro deployments, add it manually in your private deployment environment variables. 5. Open-source deployment files do not include `PRO_TOKEN`. For Pro deployments, add it manually in your private deployment environment variables.
### API Key App Name Initialization ### 2. Docker Image Changes
- Update the fastgpt-app (FastGPT main service) image tag to v4.15.1.
- Update the fastgpt-pro (FastGPT commercial edition) image tag to v4.15.1.
- Update the fastgpt-plugin image tag to v1.0.1.
### 3. API Key App Name Initialization
To keep older API keys compatible and make it easier to find keys previously associated with apps, v4.15.1 adds global API Key tag management and an `appName` display snapshot for historical app-level API Keys. After upgrading, run the initialization script once to backfill app names for existing API Keys whose `appId` field is still present. To keep older API keys compatible and make it easier to find keys previously associated with apps, v4.15.1 adds global API Key tag management and an `appName` display snapshot for historical app-level API Keys. After upgrading, run the initialization script once to backfill app names for existing API Keys whose `appId` field is still present.
......
...@@ -5,7 +5,9 @@ description: 'FastGPT V4.15.1 更新说明' ...@@ -5,7 +5,9 @@ description: 'FastGPT V4.15.1 更新说明'
## 📦 升级指南 ## 📦 升级指南
### fastgpt-pro 环境变量更新 ### 1. fastgpt-pro 环境变量更新
社区版跳过。
v4.15.1 起,FastGPT 主应用访问 Pro/Admin 内部接口不再使用 `rootkey`,改为使用独立的服务间凭证 `PRO_TOKEN`。同时要求 `FE_DOMAIN` 变量必填,如果你部署了 Pro 版本,需要同时在 FastGPT 主应用和 Pro/Admin 服务中配置相同的 `PRO_TOKEN`: v4.15.1 起,FastGPT 主应用访问 Pro/Admin 内部接口不再使用 `rootkey`,改为使用独立的服务间凭证 `PRO_TOKEN`。同时要求 `FE_DOMAIN` 变量必填,如果你部署了 Pro 版本,需要同时在 FastGPT 主应用和 Pro/Admin 服务中配置相同的 `PRO_TOKEN`:
...@@ -22,7 +24,13 @@ FE_DOMAIN=fastgpt_domain ...@@ -22,7 +24,13 @@ FE_DOMAIN=fastgpt_domain
4. `rootkey` 不再作为 FastGPT 主应用访问 Pro/Admin 内部接口的凭证,仅作为当前系统的管理员密钥,用于调用 `/api/admin/**` 接口,例如下方初始化脚本。 4. `rootkey` 不再作为 FastGPT 主应用访问 Pro/Admin 内部接口的凭证,仅作为当前系统的管理员密钥,用于调用 `/api/admin/**` 接口,例如下方初始化脚本。
5. 开源版部署配置文件不会内置 `PRO_TOKEN`。Pro 部署请在私有部署环境变量中手动增加该配置。 5. 开源版部署配置文件不会内置 `PRO_TOKEN`。Pro 部署请在私有部署环境变量中手动增加该配置。
### API Key 应用名初始化 ### 2. 镜像变更
- 更新 fastgpt-app(fastgpt 主服务) 镜像 tag: v4.15.1
- 更新 fastgpt-pro(fastgpt 商业版) 镜像 tag: v4.15.1
- 更新 fastgpt-plugin 镜像 tag: v1.0.1
### 3. API Key 应用名初始化
为了兼容旧版 API 密钥,便于找到以前应用关联的密钥,v4.15.1 增加了全局 API Key 标签管理,并为历史应用级 API Key 增加 `appName` 展示快照。升级后建议执行一次初始化脚本,为已有 `appId` 的历史 API Key 自动回填应用名。 为了兼容旧版 API 密钥,便于找到以前应用关联的密钥,v4.15.1 增加了全局 API Key 标签管理,并为历史应用级 API Key 增加 `appName` 展示快照。升级后建议执行一次初始化脚本,为已有 `appId` 的历史 API Key 自动回填应用名。
......
...@@ -203,8 +203,8 @@ ...@@ -203,8 +203,8 @@
"content/self-host/custom-models/ollama.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/custom-models/ollama.mdx": "2026-04-26T21:08:47+08:00",
"content/self-host/custom-models/xinference.en.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/custom-models/xinference.en.mdx": "2026-04-26T21:08:47+08:00",
"content/self-host/custom-models/xinference.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/custom-models/xinference.mdx": "2026-04-26T21:08:47+08:00",
"content/self-host/deploy/docker.en.mdx": "2026-06-30T22:10:03+08:00", "content/self-host/deploy/docker.en.mdx": "2026-07-03T23:51:40+08:00",
"content/self-host/deploy/docker.mdx": "2026-06-30T22:10:03+08:00", "content/self-host/deploy/docker.mdx": "2026-07-03T23:51:40+08:00",
"content/self-host/deploy/sealos.en.mdx": "2026-06-30T22:10:03+08:00", "content/self-host/deploy/sealos.en.mdx": "2026-06-30T22:10:03+08:00",
"content/self-host/deploy/sealos.mdx": "2026-06-30T22:10:03+08:00", "content/self-host/deploy/sealos.mdx": "2026-06-30T22:10:03+08:00",
"content/self-host/design/dataset.en.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/design/dataset.en.mdx": "2026-04-26T21:08:47+08:00",
...@@ -314,8 +314,8 @@ ...@@ -314,8 +314,8 @@
"content/self-host/upgrading/4-15/41506.mdx": "2026-07-01T12:13:58+08:00", "content/self-host/upgrading/4-15/41506.mdx": "2026-07-01T12:13:58+08:00",
"content/self-host/upgrading/4-15/41507.en.mdx": "2026-06-30T17:31:43+08:00", "content/self-host/upgrading/4-15/41507.en.mdx": "2026-06-30T17:31:43+08:00",
"content/self-host/upgrading/4-15/41507.mdx": "2026-06-30T17:31:43+08:00", "content/self-host/upgrading/4-15/41507.mdx": "2026-06-30T17:31:43+08:00",
"content/self-host/upgrading/4-15/4151.en.mdx": "2026-07-03T21:53:07+08:00", "content/self-host/upgrading/4-15/4151.en.mdx": "2026-07-03T22:44:25+08:00",
"content/self-host/upgrading/4-15/4151.mdx": "2026-07-03T21:53:07+08:00", "content/self-host/upgrading/4-15/4151.mdx": "2026-07-03T22:44:25+08:00",
"content/self-host/upgrading/outdated/40.en.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/upgrading/outdated/40.en.mdx": "2026-04-26T21:08:47+08:00",
"content/self-host/upgrading/outdated/40.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/upgrading/outdated/40.mdx": "2026-04-26T21:08:47+08:00",
"content/self-host/upgrading/outdated/41.en.mdx": "2026-04-26T21:08:47+08:00", "content/self-host/upgrading/outdated/41.en.mdx": "2026-04-26T21:08:47+08:00",
......
---
name: fastgpt-docker-deploy
description: FastGPT Docker Compose self-hosting deployment workflow. Use when a user asks an AI agent to deploy FastGPT with Docker by referencing /deploy/SKILL.md, including creating an empty fastgpt directory, running the install script in non-interactive mode, starting Docker Compose, monitoring service health, troubleshooting compose issues, and returning the access URL plus root credentials and next steps.
---
# FastGPT Docker 部署
## 目标
在一台已有终端访问权限的 Linux、macOS 或 Windows WSL 服务器上,通过 FastGPT 官方交互式脚本生成 Docker Compose 配置,启动服务,确认 FastGPT 可访问,最后把访问地址、账号、密码和下一步动作交给用户。
## 工作边界
- 优先使用官方脚本:`https://doc.fastgpt.cn/deploy/install.sh`
- 默认使用脚本非交互模式:国内镜像源、自动随机密钥、检测到的第一个主 IP、`PostgreSQL + pgvector` 向量库。
- 不要覆盖用户已有的 `docker-compose.yml` 或数据卷,除非用户明确同意。
- 不要在公开输出里泄露除 `root` 初始登录密码外的服务 Token、数据库密码或应用密钥。
- 如果宿主机已有反向代理、域名或云厂商防火墙,先完成本机部署验证,再提醒用户开放或映射 `3000``9000``3003`
## 部署流程
1. 检查运行环境:
```bash
docker -v
docker compose version
curl --version
```
如果 Docker 或 Compose 不存在,先向用户说明缺失项。只有在用户授权安装系统软件时,才安装 Docker。
2. 创建空的 `fastgpt` 部署目录:
```bash
mkdir -p ~/fastgpt
cd ~/fastgpt
if [ -n "$(ls -A .)" ]; then
echo "当前目录非空,请先确认是否继续或改用新的空目录。"
exit 1
fi
```
如果目录非空,先读取文件和 `docker compose ps` 判断是否已有部署,不要直接覆盖。让用户确认继续使用当前目录、备份旧文件,或改用新的空目录。
3. 下载并运行官方脚本:
```bash
curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh
FASTGPT_NON_INTERACTIVE=true bash install.sh
```
非交互模式会默认选择最新稳定版本、国内镜像源、`PostgreSQL + pgvector`、自动随机密钥,并把 S3/MCP 地址设置为检测到的第一个主 IP。
如果用户明确给了公网域名或固定 IP,用环境变量覆盖 endpoint:
```bash
FASTGPT_NON_INTERACTIVE=true \
FASTGPT_S3_ENDPOINT=https://s3.example.com:9000 \
FASTGPT_MCP_ENDPOINT=https://mcp.example.com:3003 \
bash install.sh
```
可选覆盖项:
- `FASTGPT_DEPLOY_VERSION`:部署版本,例如 `v4.15` 或 `main`。
- `FASTGPT_REGION`:镜像源,`cn` 或 `global`。
- `FASTGPT_VECTOR`:向量库,`pg`、`milvus`、`zilliz`、`oceanbase` 或 `seekdb`。
- `FASTGPT_AUTO_GENERATE_CREDENTIALS`:是否自动随机密钥,默认 `true`。
- `FASTGPT_LOCAL_COMPOSE_PATH`:使用本地 `docker-compose.yml`。
记录脚本最终输出中的 `root` 登录密码和提示的访问地址。
4. 启动服务:
```bash
docker compose up -d
```
如果脚本提示需要先预热 OpenSandbox 镜像,先执行脚本输出的 `docker compose --profile prepull pull ...` 命令,再启动服务。
5. 监听运行状态:
```bash
docker compose ps
docker compose logs --tail=120 fastgpt-app
```
等待核心服务变为 running 或 healthy。重点检查:
- `fastgpt-app`
- `fastgpt-mongo`
- `fastgpt-redis`
- `fastgpt-vector`
- `fastgpt-minio`
- `fastgpt-plugin`
- `fastgpt-aiproxy`
6. 验证访问:
```bash
curl -I http://localhost:3000
```
如果用户提供了公网 IP 或域名,也验证对应地址。浏览器访问地址通常是 `http://<服务器地址>:3000`
## 常见问题处理
- 端口冲突:用 `docker compose ps``docker compose logs` 确认冲突端口,修改 `docker-compose.yml` 左侧宿主机端口,例如 `3001:3000`,再运行 `docker compose up -d`
- S3 地址错误:检查 `STORAGE_EXTERNAL_ENDPOINT`,必须是客户端和 FastGPT 容器都能访问的地址,不能是 `127.0.0.1``localhost`
- Mongo 启动失败且日志出现 `Illegal instruction`:CPU 可能不支持 AVX,把 Mongo 镜像切换为 4.x 版本后重建相关容器。
- 数据库或向量库未就绪:先看对应容器日志,不要删除数据卷;只有确认是首次失败且没有有效数据时,才建议用户清理数据卷重试。
- 配置文件改动后:运行 `docker compose up -d` 让 Compose 应用变更;必要时只重启相关服务。
## 最终回复
使用用户的语言习惯回复。如果用户使用中文提问,用中文返回;如果用户使用英文提问,用英文返回;如果用户混合使用多种语言,优先使用用户主要使用的语言。
完全成功后,返回:
- FastGPT 访问地址,例如 `http://<服务器地址>:3000`
- 登录账号:`root`
- 登录密码:脚本输出的随机密码,或 `docker-compose.yml` 中的 `DEFAULT_ROOT_PSW`
- 已开放或需要开放的端口:`3000``9000``3003`
- 下一步动作:登录后到 `账号-模型提供商` 配置语言模型和索引模型;如需使用系统插件,到插件市场安装;如需公网 HTTPS,配置域名和反向代理。
如果未完全成功,返回当前卡住的容器、关键日志、已尝试的修复动作和下一步需要用户确认的事项。
...@@ -192,7 +192,7 @@ services: ...@@ -192,7 +192,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -231,7 +231,6 @@ services: ...@@ -231,7 +231,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -348,7 +347,7 @@ services: ...@@ -348,7 +347,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -423,6 +422,8 @@ services: ...@@ -423,6 +422,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -170,7 +170,7 @@ services: ...@@ -170,7 +170,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -209,7 +209,6 @@ services: ...@@ -209,7 +209,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -326,7 +325,7 @@ services: ...@@ -326,7 +325,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -401,6 +400,8 @@ services: ...@@ -401,6 +400,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -154,7 +154,7 @@ services: ...@@ -154,7 +154,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -193,7 +193,6 @@ services: ...@@ -193,7 +193,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -310,7 +309,7 @@ services: ...@@ -310,7 +309,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -385,6 +384,8 @@ services: ...@@ -385,6 +384,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -152,7 +152,7 @@ services: ...@@ -152,7 +152,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -191,7 +191,6 @@ services: ...@@ -191,7 +191,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -308,7 +307,7 @@ services: ...@@ -308,7 +307,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -383,6 +382,8 @@ services: ...@@ -383,6 +382,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -157,7 +157,7 @@ services: ...@@ -157,7 +157,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -196,7 +196,6 @@ services: ...@@ -196,7 +196,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -313,7 +312,7 @@ services: ...@@ -313,7 +312,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -388,6 +387,8 @@ services: ...@@ -388,6 +387,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -135,7 +135,7 @@ services: ...@@ -135,7 +135,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -146,8 +146,6 @@ services: ...@@ -146,8 +146,6 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -174,7 +172,6 @@ services: ...@@ -174,7 +172,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -291,7 +288,7 @@ services: ...@@ -291,7 +288,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -366,6 +363,8 @@ services: ...@@ -366,6 +363,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -192,7 +192,7 @@ services: ...@@ -192,7 +192,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -231,7 +231,6 @@ services: ...@@ -231,7 +231,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -348,7 +347,7 @@ services: ...@@ -348,7 +347,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -423,6 +422,8 @@ services: ...@@ -423,6 +422,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -170,7 +170,7 @@ services: ...@@ -170,7 +170,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -209,7 +209,6 @@ services: ...@@ -209,7 +209,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -326,7 +325,7 @@ services: ...@@ -326,7 +325,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -401,6 +400,8 @@ services: ...@@ -401,6 +400,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -154,7 +154,7 @@ services: ...@@ -154,7 +154,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -193,7 +193,6 @@ services: ...@@ -193,7 +193,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -310,7 +309,7 @@ services: ...@@ -310,7 +309,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -385,6 +384,8 @@ services: ...@@ -385,6 +384,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -152,7 +152,7 @@ services: ...@@ -152,7 +152,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -191,7 +191,6 @@ services: ...@@ -191,7 +191,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -308,7 +307,7 @@ services: ...@@ -308,7 +307,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -383,6 +382,8 @@ services: ...@@ -383,6 +382,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -157,7 +157,7 @@ services: ...@@ -157,7 +157,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -196,7 +196,6 @@ services: ...@@ -196,7 +196,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -313,7 +312,7 @@ services: ...@@ -313,7 +312,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -388,6 +387,8 @@ services: ...@@ -388,6 +387,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -135,7 +135,7 @@ services: ...@@ -135,7 +135,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -146,8 +146,6 @@ services: ...@@ -146,8 +146,6 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -174,7 +172,6 @@ services: ...@@ -174,7 +172,6 @@ services:
SYNC_INDEX: true SYNC_INDEX: true
# 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100 # 系统变量替换等同步字符串处理的最大字符数,单位 M,范围 1~100
SYSTEM_MAX_STRING_LENGTH_M: 100 SYSTEM_MAX_STRING_LENGTH_M: 100
TOKEN_KEY: fastgpt
# 文件阅读时的密钥 # 文件阅读时的密钥
FILE_TOKEN_KEY: filetokenkey FILE_TOKEN_KEY: filetokenkey
# 密钥加密 key # 密钥加密 key
...@@ -291,7 +288,7 @@ services: ...@@ -291,7 +288,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
...@@ -366,6 +363,8 @@ services: ...@@ -366,6 +363,8 @@ services:
networks: networks:
data: data:
name: fastgpt_data name: fastgpt_data
vector:
name: fastgpt_vector
app: app:
name: fastgpt_app name: fastgpt_app
codesandbox: codesandbox:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -333,7 +328,7 @@ services: ...@@ -333,7 +328,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -344,6 +339,8 @@ services: ...@@ -344,6 +339,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -439,7 +436,7 @@ services: ...@@ -439,7 +436,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -311,7 +306,7 @@ services: ...@@ -311,7 +306,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -322,6 +317,8 @@ services: ...@@ -322,6 +317,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -417,7 +414,7 @@ services: ...@@ -417,7 +414,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -295,7 +290,7 @@ services: ...@@ -295,7 +290,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -306,6 +301,8 @@ services: ...@@ -306,6 +301,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -401,7 +398,7 @@ services: ...@@ -401,7 +398,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -293,7 +288,7 @@ services: ...@@ -293,7 +288,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -304,6 +299,8 @@ services: ...@@ -304,6 +299,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -399,7 +396,7 @@ services: ...@@ -399,7 +396,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -298,7 +293,7 @@ services: ...@@ -298,7 +293,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -309,6 +304,8 @@ services: ...@@ -309,6 +304,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -404,7 +401,7 @@ services: ...@@ -404,7 +401,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -276,7 +271,7 @@ services: ...@@ -276,7 +271,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -382,7 +377,7 @@ services: ...@@ -382,7 +377,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -333,7 +328,7 @@ services: ...@@ -333,7 +328,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -344,6 +339,8 @@ services: ...@@ -344,6 +339,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -439,7 +436,7 @@ services: ...@@ -439,7 +436,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -311,7 +306,7 @@ services: ...@@ -311,7 +306,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -322,6 +317,8 @@ services: ...@@ -322,6 +317,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -417,7 +414,7 @@ services: ...@@ -417,7 +414,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -295,7 +290,7 @@ services: ...@@ -295,7 +290,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -306,6 +301,8 @@ services: ...@@ -306,6 +301,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -401,7 +398,7 @@ services: ...@@ -401,7 +398,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -293,7 +288,7 @@ services: ...@@ -293,7 +288,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -304,6 +299,8 @@ services: ...@@ -304,6 +299,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -399,7 +396,7 @@ services: ...@@ -399,7 +396,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -298,7 +293,7 @@ services: ...@@ -298,7 +293,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -309,6 +304,8 @@ services: ...@@ -309,6 +304,8 @@ services:
depends_on: depends_on:
fastgpt-mongo: fastgpt-mongo:
condition: service_healthy condition: service_healthy
fastgpt-vector:
condition: service_healthy
fastgpt-redis: fastgpt-redis:
condition: service_healthy condition: service_healthy
fastgpt-minio: fastgpt-minio:
...@@ -404,7 +401,7 @@ services: ...@@ -404,7 +401,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
x-default-root-psw: &x-default-root-psw "1234" x-default-root-psw: &x-default-root-psw "1234"
# 系统最高密钥凭证 # 系统最高密钥凭证
x-system-key: &x-system-key "fastgpt-xxx" x-system-key: &x-system-key "fastgpt-xxx"
# 用户登录 JWT 密钥
x-token-key: &x-token-key "fastgpt"
# 文件阅读 token 密钥 # 文件阅读 token 密钥
x-file-token-key: &x-file-token-key "filetokenkey" x-file-token-key: &x-file-token-key "filetokenkey"
# 密钥加密 key # 密钥加密 key
...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch ...@@ -20,8 +18,6 @@ x-invoke-token-secret: &x-invoke-token-secret "fastgpt_invoke_token_secret_32_ch
x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change" x-plugin-auth-token: &x-plugin-auth-token "fastgpt-plugin-token-please-change"
# code sandbox token # code sandbox token
x-code-sandbox-token: &x-code-sandbox-token "codesandbox" x-code-sandbox-token: &x-code-sandbox-token "codesandbox"
# volume manager auth token
x-volume-manager-auth-token: &x-volume-manager-auth-token "vmtoken"
# agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位 # agent sandbox proxy secret,必须与 FastGPT 主站环境变量保持一致,且至少 32 位
x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret" x-agent-sandbox-proxy-secret: &x-agent-sandbox-proxy-secret "default_fastgpt_agent_sandbox_proxy_secret"
# aiproxy token # aiproxy token
...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config ...@@ -83,13 +79,13 @@ x-agent-sandbox-config: &x-agent-sandbox-config
AGENT_SANDBOX_OPENSANDBOX_BASEURL: AGENT_SANDBOX_OPENSANDBOX_BASEURL:
AGENT_SANDBOX_OPENSANDBOX_API_KEY: AGENT_SANDBOX_OPENSANDBOX_API_KEY:
AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker AGENT_SANDBOX_OPENSANDBOX_RUNTIME: docker
AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO: ghcr.io/labring/fastgpt-agent-sandbox AGENT_SANDBOX_OPENSANDBOX_IMAGE_REPO:
AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG: v0.2.0 AGENT_SANDBOX_OPENSANDBOX_IMAGE_TAG:
AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true AGENT_SANDBOX_OPENSANDBOX_USE_SERVER_PROXY: true
AGENT_SANDBOX_SEALOS_BASEURL: AGENT_SANDBOX_SEALOS_BASEURL:
AGENT_SANDBOX_SEALOS_TOKEN: AGENT_SANDBOX_SEALOS_TOKEN:
AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace AGENT_SANDBOX_SEALOS_WORK_DIRECTORY: /home/devbox/workspace
AGENT_SANDBOX_SEALOS_IMAGE: ghcr.io/labring/fastgpt-agent-sandbox:v0.2.0 AGENT_SANDBOX_SEALOS_IMAGE:
AGENT_SANDBOX_ENABLE_VOLUME: false AGENT_SANDBOX_ENABLE_VOLUME: false
AGENT_SANDBOX_VOLUME_MANAGER_URL: AGENT_SANDBOX_VOLUME_MANAGER_URL:
AGENT_SANDBOX_VOLUME_MANAGER_TOKEN: AGENT_SANDBOX_VOLUME_MANAGER_TOKEN:
...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config ...@@ -122,7 +118,6 @@ x-service-env-config: &x-service-env-config
ROOT_KEY: *x-system-key ROOT_KEY: *x-system-key
DB_MAX_LINK: 5 DB_MAX_LINK: 5
SYNC_INDEX: true SYNC_INDEX: true
TOKEN_KEY: *x-token-key
FILE_TOKEN_KEY: *x-file-token-key FILE_TOKEN_KEY: *x-file-token-key
AES256_SECRET_KEY: *x-aes256-secret-key AES256_SECRET_KEY: *x-aes256-secret-key
INVOKE_TOKEN_SECRET: *x-invoke-token-secret INVOKE_TOKEN_SECRET: *x-invoke-token-secret
...@@ -276,7 +271,7 @@ services: ...@@ -276,7 +271,7 @@ services:
fastgpt-app: fastgpt-app:
container_name: fastgpt-app container_name: fastgpt-app
image: ghcr.io/labring/fastgpt:v4.15.0 image: ghcr.io/labring/fastgpt:v4.15.1
ports: ports:
- 3000:3000 - 3000:3000
networks: networks:
...@@ -382,7 +377,7 @@ services: ...@@ -382,7 +377,7 @@ services:
<<: [*x-log-config, *x-no-proxy-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:v1.0.0 image: ghcr.io/labring/fastgpt-plugin:v1.0.1
container_name: fastgpt-plugin container_name: fastgpt-plugin
restart: always restart: always
networks: networks:
......
...@@ -189,16 +189,43 @@ prompt_local_compose_path() { ...@@ -189,16 +189,43 @@ prompt_local_compose_path() {
done done
} }
is_true() {
case "$1" in
true | TRUE | True | 1 | yes | YES | Yes | y | Y | on | ON | On) return 0 ;;
*) return 1 ;;
esac
}
is_false() {
case "$1" in
false | FALSE | False | 0 | no | NO | No | n | N | off | OFF | Off) return 0 ;;
*) return 1 ;;
esac
}
normalize_bool_env() {
local name="$1"
local value="$2"
if is_true "$value"; then
echo "true"
elif is_false "$value"; then
echo "false"
else
echo "错误: $name 只支持 true/false、1/0、yes/no、on/off" >&2
exit 1
fi
}
ROOT_LOGIN_PASSWORD="1234" ROOT_LOGIN_PASSWORD="1234"
randomize_compose_credentials() { randomize_compose_credentials() {
local system_key token_key file_token_key aes256_secret_key invoke_token_secret local system_key file_token_key aes256_secret_key invoke_token_secret
local plugin_token code_sandbox_token volume_manager_token agent_proxy_secret aiproxy_token local plugin_token code_sandbox_token volume_manager_token agent_proxy_secret aiproxy_token
local root_password mongo_password redis_password minio_password local root_password mongo_password redis_password minio_password
local pg_password aiproxy_pg_password oceanbase_sys_password oceanbase_tenant_password seekdb_password opengauss_password local pg_password aiproxy_pg_password oceanbase_sys_password oceanbase_tenant_password seekdb_password opengauss_password
system_key="$(random_hex 32)" system_key="$(random_hex 32)"
token_key="$(random_hex 32)"
file_token_key="$(random_hex 32)" file_token_key="$(random_hex 32)"
aes256_secret_key="$(random_hex 32)" aes256_secret_key="$(random_hex 32)"
invoke_token_secret="$(random_hex 32)" invoke_token_secret="$(random_hex 32)"
...@@ -230,8 +257,6 @@ randomize_compose_credentials() { ...@@ -230,8 +257,6 @@ randomize_compose_credentials() {
# YAML anchors: 多个服务共用的 token 只改锚点,引用方自动同步。 # YAML anchors: 多个服务共用的 token 只改锚点,引用方自动同步。
replace_text "x-system-key: &x-system-key 'fastgpt-xxx'" "x-system-key: &x-system-key '$system_key'" replace_text "x-system-key: &x-system-key 'fastgpt-xxx'" "x-system-key: &x-system-key '$system_key'"
replace_text 'x-system-key: &x-system-key "fastgpt-xxx"' "x-system-key: &x-system-key \"$system_key\"" replace_text 'x-system-key: &x-system-key "fastgpt-xxx"' "x-system-key: &x-system-key \"$system_key\""
replace_text "x-token-key: &x-token-key 'fastgpt'" "x-token-key: &x-token-key '$token_key'"
replace_text 'x-token-key: &x-token-key "fastgpt"' "x-token-key: &x-token-key \"$token_key\""
replace_text "x-file-token-key: &x-file-token-key 'filetokenkey'" "x-file-token-key: &x-file-token-key '$file_token_key'" replace_text "x-file-token-key: &x-file-token-key 'filetokenkey'" "x-file-token-key: &x-file-token-key '$file_token_key'"
replace_text 'x-file-token-key: &x-file-token-key "filetokenkey"' "x-file-token-key: &x-file-token-key \"$file_token_key\"" replace_text 'x-file-token-key: &x-file-token-key "filetokenkey"' "x-file-token-key: &x-file-token-key \"$file_token_key\""
replace_text "x-aes256-secret-key: &x-aes256-secret-key 'fastgptsecret'" "x-aes256-secret-key: &x-aes256-secret-key '$aes256_secret_key'" replace_text "x-aes256-secret-key: &x-aes256-secret-key 'fastgptsecret'" "x-aes256-secret-key: &x-aes256-secret-key '$aes256_secret_key'"
...@@ -307,6 +332,10 @@ DEPLOY_VERSIONS=( ...@@ -307,6 +332,10 @@ DEPLOY_VERSIONS=(
# END GENERATED DEPLOY VERSIONS # END GENERATED DEPLOY VERSIONS
LOCAL_DEPLOY_VERSION="local" LOCAL_DEPLOY_VERSION="local"
LOCAL_DEPLOY_LABEL="本地 docker-compose.yml" LOCAL_DEPLOY_LABEL="本地 docker-compose.yml"
NON_INTERACTIVE=false
if [ -n "$FASTGPT_NON_INTERACTIVE" ]; then
NON_INTERACTIVE="$(normalize_bool_env FASTGPT_NON_INTERACTIVE "$FASTGPT_NON_INTERACTIVE")"
fi
# 获取部署版本展示文案:main 为迭代版,其他版本均视为稳定版 # 获取部署版本展示文案:main 为迭代版,其他版本均视为稳定版
get_version_label() { get_version_label() {
...@@ -350,6 +379,8 @@ elif [ -n "$FASTGPT_DEPLOY_VERSION" ]; then ...@@ -350,6 +379,8 @@ elif [ -n "$FASTGPT_DEPLOY_VERSION" ]; then
echo "可选版本: ${DEPLOY_VERSIONS[*]} $LOCAL_DEPLOY_VERSION" echo "可选版本: ${DEPLOY_VERSIONS[*]} $LOCAL_DEPLOY_VERSION"
exit 1 exit 1
fi fi
elif [ "$NON_INTERACTIVE" = true ]; then
DEPLOY_VERSION="${DEPLOY_VERSIONS[0]}"
else else
VERSION_OPTIONS=() VERSION_OPTIONS=()
for version in "${DEPLOY_VERSIONS[@]}"; do for version in "${DEPLOY_VERSIONS[@]}"; do
...@@ -368,22 +399,68 @@ fi ...@@ -368,22 +399,68 @@ fi
# ========== 2. 选择镜像源 ========== # ========== 2. 选择镜像源 ==========
if [ "$DEPLOY_VERSION" != "$LOCAL_DEPLOY_VERSION" ]; then if [ "$DEPLOY_VERSION" != "$LOCAL_DEPLOY_VERSION" ]; then
radio_select "请选择镜像源 (↑↓ 选择, 回车确认):" "阿里云 (中国大陆)" "GitHub (全球)" if [ -n "$FASTGPT_REGION" ]; then
case $RADIO_RESULT in case "$FASTGPT_REGION" in
1) cn | CN | china | China)
REGION="global" REGION="cn"
BASE_URL="https://doc.fastgpt.io/deploy" BASE_URL="https://doc.fastgpt.cn/deploy"
;; ;;
*) global | GLOBAL | Global | github | GitHub)
REGION="cn" REGION="global"
BASE_URL="https://doc.fastgpt.cn/deploy" BASE_URL="https://doc.fastgpt.io/deploy"
;; ;;
esac *)
echo "错误: 不支持的 FASTGPT_REGION: $FASTGPT_REGION"
echo "可选值: cn, global"
exit 1
;;
esac
elif [ "$NON_INTERACTIVE" = true ]; then
REGION="cn"
BASE_URL="https://doc.fastgpt.cn/deploy"
else
radio_select "请选择镜像源 (↑↓ 选择, 回车确认):" "阿里云 (中国大陆)" "GitHub (全球)"
case $RADIO_RESULT in
1)
REGION="global"
BASE_URL="https://doc.fastgpt.io/deploy"
;;
*)
REGION="cn"
BASE_URL="https://doc.fastgpt.cn/deploy"
;;
esac
fi
fi fi
# ========== 3. 选择向量数据库 ========== # ========== 3. 选择向量数据库 ==========
if [ "$DEPLOY_VERSION" == "$LOCAL_DEPLOY_VERSION" ]; then if [ "$DEPLOY_VERSION" == "$LOCAL_DEPLOY_VERSION" ]; then
VECTOR="local" VECTOR="local"
elif [ -n "$FASTGPT_VECTOR" ]; then
case "$FASTGPT_VECTOR" in
pg | PG | pgvector | PgVector | postgresql | PostgreSQL)
VECTOR="pg"
;;
milvus | Milvus)
VECTOR="milvus"
;;
zilliz | Zilliz)
VECTOR="zilliz"
;;
oceanbase | OceanBase)
VECTOR="oceanbase"
;;
seekdb | SeekDB)
VECTOR="seekdb"
;;
*)
echo "错误: 不支持的 FASTGPT_VECTOR: $FASTGPT_VECTOR"
echo "可选值: pg, milvus, zilliz, oceanbase, seekdb"
exit 1
;;
esac
elif [ "$NON_INTERACTIVE" = true ]; then
VECTOR="pg"
else else
radio_select "请选择向量数据库 (↑↓ 选择, 回车确认):" "PostgreSQL + pgvector" "Milvus" "Zilliz" "OceanBase" "SeekDB" radio_select "请选择向量数据库 (↑↓ 选择, 回车确认):" "PostgreSQL + pgvector" "Milvus" "Zilliz" "OceanBase" "SeekDB"
case $RADIO_RESULT in case $RADIO_RESULT in
...@@ -396,11 +473,17 @@ else ...@@ -396,11 +473,17 @@ else
fi fi
# ========== 4. 选择是否自动生成密钥 ========== # ========== 4. 选择是否自动生成密钥 ==========
radio_select "是否自动生成登录密码、服务 Token、应用密钥和组件密码? (↑↓ 选择, 回车确认):" "自动生成 (推荐)" "不自动生成" if [ -n "$FASTGPT_AUTO_GENERATE_CREDENTIALS" ]; then
case $RADIO_RESULT in AUTO_GENERATE_CREDENTIALS="$(normalize_bool_env FASTGPT_AUTO_GENERATE_CREDENTIALS "$FASTGPT_AUTO_GENERATE_CREDENTIALS")"
1) AUTO_GENERATE_CREDENTIALS=false ;; elif [ "$NON_INTERACTIVE" = true ]; then
*) AUTO_GENERATE_CREDENTIALS=true ;; AUTO_GENERATE_CREDENTIALS=true
esac else
radio_select "是否自动生成登录密码、服务 Token、应用密钥和组件密码? (↑↓ 选择, 回车确认):" "自动生成 (推荐)" "不自动生成"
case $RADIO_RESULT in
1) AUTO_GENERATE_CREDENTIALS=false ;;
*) AUTO_GENERATE_CREDENTIALS=true ;;
esac
fi
# ========== 5. 检测可用 IP ========== # ========== 5. 检测可用 IP ==========
IP_LIST=() IP_LIST=()
...@@ -451,7 +534,26 @@ IP_LIST=("${UNIQUE_IPS[@]}") ...@@ -451,7 +534,26 @@ IP_LIST=("${UNIQUE_IPS[@]}")
select_address() { select_address() {
local title="$1" local title="$1"
local port="$2" local port="$2"
local preset_endpoint="$3"
SELECTED_CUSTOM=false SELECTED_CUSTOM=false
if [ -n "$preset_endpoint" ]; then
SELECTED_ADDR="$preset_endpoint"
SELECTED_CUSTOM=true
return
fi
if [ "$NON_INTERACTIVE" = true ]; then
if [ ${#IP_LIST[@]} -gt 0 ]; then
SELECTED_ADDR="${IP_LIST[0]}"
SELECTED_CUSTOM=false
return
fi
echo "错误: 未检测到可用 IP 地址。请设置 FASTGPT_S3_ENDPOINT 和 FASTGPT_MCP_ENDPOINT 后重试。" >&2
exit 1
fi
if [ ${#IP_LIST[@]} -gt 0 ]; then if [ ${#IP_LIST[@]} -gt 0 ]; then
# 构建带完整地址的选项列表 # 构建带完整地址的选项列表
local opts=() local opts=()
...@@ -481,12 +583,12 @@ select_address() { ...@@ -481,12 +583,12 @@ select_address() {
} }
# ========== 6. 选择 S3 访问地址 (端口 9000) ========== # ========== 6. 选择 S3 访问地址 (端口 9000) ==========
select_address "请选择 S3 访问地址 - 客户端和容器均需可访问 (↑↓ 选择, 回车确认, 通常默认第一个即可):" 9000 select_address "请选择 S3 访问地址 - 客户端和容器均需可访问 (↑↓ 选择, 回车确认, 通常默认第一个即可):" 9000 "$FASTGPT_S3_ENDPOINT"
S3_ADDR="$SELECTED_ADDR" S3_ADDR="$SELECTED_ADDR"
S3_CUSTOM=$SELECTED_CUSTOM S3_CUSTOM=$SELECTED_CUSTOM
# ========== 7. 选择 SSE MCP 访问地址 (端口 3003) ========== # ========== 7. 选择 SSE MCP 访问地址 (端口 3003) ==========
select_address "请选择 SSE MCP 访问地址 - 客户端和容器均需可访问 (↑↓ 选择, 回车确认, 通常默认第一个即可):" 3003 select_address "请选择 SSE MCP 访问地址 - 客户端和容器均需可访问 (↑↓ 选择, 回车确认, 通常默认第一个即可):" 3003 "$FASTGPT_MCP_ENDPOINT"
MCP_ADDR="$SELECTED_ADDR" MCP_ADDR="$SELECTED_ADDR"
MCP_CUSTOM=$SELECTED_CUSTOM MCP_CUSTOM=$SELECTED_CUSTOM
...@@ -538,10 +640,14 @@ echo " MCP 地址: $MCP_DISPLAY" ...@@ -538,10 +640,14 @@ echo " MCP 地址: $MCP_DISPLAY"
echo " 密钥处理: $CREDENTIALS_LABEL" echo " 密钥处理: $CREDENTIALS_LABEL"
echo "==============================" echo "=============================="
echo "" echo ""
read -p "确认以上配置? (y/n) [y]: " confirm if [ "$NON_INTERACTIVE" = true ]; then
if [ "$confirm" == "n" ]; then echo "非交互模式已自动确认配置"
echo "已取消" else
exit 1 read -p "确认以上配置? (y/n) [y]: " confirm
if [ "$confirm" == "n" ]; then
echo "已取消"
exit 1
fi
fi fi
# ========== 获取配置文件 ========== # ========== 获取配置文件 ==========
...@@ -710,10 +816,11 @@ if [ -n "$MCP_ADDR" ]; then ...@@ -710,10 +816,11 @@ if [ -n "$MCP_ADDR" ]; then
sed -i "s|\"mcpServerProxyEndpoint\": \"\"|\"mcpServerProxyEndpoint\": \"$MCP_ENDPOINT\"|g" config.json sed -i "s|\"mcpServerProxyEndpoint\": \"\"|\"mcpServerProxyEndpoint\": \"$MCP_ENDPOINT\"|g" config.json
fi fi
else else
ESCAPED_MCP_ENDPOINT=$(escape_sed_replacement "$MCP_ENDPOINT")
if [[ "$OSTYPE" == "darwin"* ]]; then if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s|^ SSE_MCP_SERVER_PROXY_ENDPOINT:.*| SSE_MCP_SERVER_PROXY_ENDPOINT: $MCP_ENDPOINT|g" docker-compose.yml sed -i '' "s|^\([[:space:]]*SSE_MCP_SERVER_PROXY_ENDPOINT:\).*|\1 $ESCAPED_MCP_ENDPOINT|g" docker-compose.yml
else else
sed -i "s|^ SSE_MCP_SERVER_PROXY_ENDPOINT:.*| SSE_MCP_SERVER_PROXY_ENDPOINT: $MCP_ENDPOINT|g" docker-compose.yml sed -i "s|^\([[:space:]]*SSE_MCP_SERVER_PROXY_ENDPOINT:\).*|\1 $ESCAPED_MCP_ENDPOINT|g" docker-compose.yml
fi fi
fi fi
......
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