Files
FastGPT/deploy
Archer aaa7d17ef1 V4.14.9 dev (#6555)
* feat: encapsulate logger (#6535)

* feat: encapsulate logger

* update engines

---------

Co-authored-by: archer <545436317@qq.com>

* next config

* dev shell

* Agent sandbox (#6532)

* docs: switch to docs layout and apply black theme (#6533)

* feat: add Gemini 3.1 models

- Add gemini-3.1-pro-preview (released February 19, 2026)
- Add gemini-3.1-flash-lite-preview (released March 3, 2026)

Both models support:
- 1M context window
- 64k max response
- Vision
- Tool choice

* docs: switch to docs layout and apply black theme

- Change layout from notebook to docs
- Update logo to icon + text format
- Apply fumadocs black theme
- Simplify global.css (keep only navbar and TOC styles)
- Fix icon components to properly accept className props
- Add mobile text overflow handling
- Update Node engine requirement to >=20.x

* doc

* doc

* lock

* fix: ts

* doc

* doc

---------

Co-authored-by: archer <archer@archerdeMac-mini.local>
Co-authored-by: archer <545436317@qq.com>

* Doc (#6493)

* cloud doc

* doc refactor

* doc move

* seo

* remove doc

* yml

* doc

* fix: tsconfig

* fix: tsconfig

* sandbox version (#6497)

* sandbox version

* add sandbox log

* update lock

* fix

* fix: sandbox

* doc

* add console

* i18n

* sandbxo in agent

* feat: agent sandbox

* lock

* feat: sandbox ui

* sandbox check exists

* env tempalte

* doc

* lock

* sandbox in chat window

* sandbox entry

* fix: test

* rename var

* sandbox config tip

* update sandbox lifecircle

* update prompt

* rename provider test

* sandbox logger

* yml

---------

Co-authored-by: Archer <archer@fastgpt.io>
Co-authored-by: archer <archer@archerdeMac-mini.local>

* perf: sandbox error tip

* Add sandbox limit and fix some issue (#6550)

* sandbox in plan

* fix: some issue

* fix: test

* editor default path

* fix: comment

* perf: sandbox worksapce

* doc

* perf: del sandbox

* sandbox build

* fix: test

* fix: pr comment

---------

Co-authored-by: Ryo <whoeverimf5@gmail.com>
Co-authored-by: Archer <archer@fastgpt.io>
Co-authored-by: archer <archer@archerdeMac-mini.local>
2026-03-16 17:09:25 +08:00
..
2026-03-16 17:09:25 +08:00
2025-06-13 00:42:09 +08:00
2026-03-16 17:09:25 +08:00

更新 docker compose 脚本

正常更新(不动服务,只改版本)

  1. 更新 args.json 中的版本号
  2. FastGPT 目录执行 pnpm run gen:deploy 即可

加服务

比如要添加 example 服务:

  1. init.mjsServices Enum 中添加 fastgptExample: fastgpt-example
  2. args.json 中添加 image 和 tag, 注意 args.jsonkey 值,要和 init.mjsvalue 值一致。
  3. 更新 templates/docker-compose.[dev|prod].yml 文件,把服务的相关配置加进去,并且:服务的 image 改为 ${{example.image}}:${{example.tag}}

加向量库

比如添加 exampleDB 向量库:

  1. 添加 vector service 配置在 templates/vector 下面,例如 templates/vector/exampleDB.txt 内容可以参考其他 txt注意缩进image 名字也要替换成 ${{exampleDB.image}}:${{exampleDB:tag}}, service name 必须是 vectorDB
  2. args.json 中添加 exampleDB 的配置
  3. init.mjs vector enum 中添加 vector
  4. init.mjs 中添加 vector 的相关配置:
const vector = {
  // pg, milvus, ob ...
  vector: {
    db: '', // 空即可
    config: `/
  VECTOR_URL:vectordb://xxxxx
    `, //注意 第一行反引号后面的 / 不能少(去除首个换行符); 左边的两个空格的缩进不能变,否则会语法错误
    extra: `` // 额外的配置,可以看 ob 的那个,需要一个 config 字段引入 init.sql
  }
}
  1. init.mjs 读入 vector 配置
{ // 这是个块作用域, 直接搜 read in Vectors
// read in Vectors
// pg, ob ....
const vectordb = fs.readFileSync(path.join(process.cwd(), 'templates', 'vector', 'vector.txt'));
vector.vector.db = String(vectordb);
}
  1. init.mjs 最后生成的时候,需要添加
    fs.promises.writeFile(
      path.join(process.cwd(), 'docker', 'cn', 'docker-compose.vector.yml'),
      replace(template, 'cn', VectorEnum.vector)
    ),
    fs.promises.writeFile(
      path.join(process.cwd(), 'docker', 'global', 'docker-compose.ziliiz.yml'),
      replace(template, 'global', VectorEnum.vector)
    ),

yaml 的锚点和引用

& 标志一个锚点

x-share-config: &x-share-config 'I am the config content'
x-share-config-list: &x-share-config-list
  key1: value
  key2: value

* 引用一个锚点

some_other_example: *x-share-config-list