Skip to content
cccskills
FreePublished on GitHub

fastgpt-docker-deploy

Deploy FastGPT on your own server using its official installation script and Docker Compose, which runs its services together. Check service health and access, investigate deployment problems, and receive the access URL, initial login details, and next steps.

OriginalShow the original 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.

See how to install

Good for

  • Setting up FastGPT on your own server
  • Checking service health after deployment
  • Investigating port conflicts or container startup failures
  • Finding initial login details and configuration steps

Files included (39)

  • SKILL.md6.8 KB
  • config/config.json1.0 KB
  • docker/main/cn/docker-compose.milvus.yml20.6 KB
  • docker/main/cn/docker-compose.oceanbase.yml20.6 KB
  • docker/main/cn/docker-compose.opengauss.yml19.8 KB
  • docker/main/cn/docker-compose.pg.yml19.6 KB
  • docker/main/cn/docker-compose.seekdb.yml19.9 KB
  • docker/main/cn/docker-compose.zilliz.yml18.9 KB
  • docker/main/global/docker-compose.milvus.yml20.0 KB
  • docker/main/global/docker-compose.oceanbase.yml20.0 KB
  • docker/main/global/docker-compose.opengauss.yml19.2 KB
  • docker/main/global/docker-compose.pg.yml18.9 KB
  • docker/main/global/docker-compose.seekdb.yml19.3 KB
  • docker/main/global/docker-compose.zilliz.yml18.3 KB
  • docker/v4.14/cn/docker-compose.milvus.yml18.9 KB
  • docker/v4.14/cn/docker-compose.oceanbase.yml18.9 KB
  • docker/v4.14/cn/docker-compose.opengauss.yml18.1 KB
  • docker/v4.14/cn/docker-compose.pg.yml17.8 KB
  • docker/v4.14/cn/docker-compose.seekdb.yml18.2 KB
  • docker/v4.14/cn/docker-compose.zilliz.yml17.2 KB
  • docker/v4.14/global/docker-compose.milvus.yml18.4 KB
  • docker/v4.14/global/docker-compose.oceanbase.yml18.3 KB
  • docker/v4.14/global/docker-compose.opengauss.yml17.5 KB
  • docker/v4.14/global/docker-compose.pg.yml17.2 KB
  • docker/v4.14/global/docker-compose.seekdb.yml17.6 KB
  • docker/v4.14/global/docker-compose.zilliz.yml16.7 KB
  • docker/v4.15/cn/docker-compose.milvus.yml21.9 KB
  • docker/v4.15/cn/docker-compose.oceanbase.yml21.8 KB
  • docker/v4.15/cn/docker-compose.opengauss.yml21.0 KB
  • docker/v4.15/cn/docker-compose.pg.yml20.8 KB
  • docker/v4.15/cn/docker-compose.seekdb.yml21.2 KB
  • docker/v4.15/cn/docker-compose.zilliz.yml20.1 KB
  • docker/v4.15/global/docker-compose.milvus.yml21.3 KB
  • docker/v4.15/global/docker-compose.oceanbase.yml21.2 KB
  • docker/v4.15/global/docker-compose.opengauss.yml20.4 KB
  • docker/v4.15/global/docker-compose.pg.yml20.2 KB
  • docker/v4.15/global/docker-compose.seekdb.yml20.5 KB
  • docker/v4.15/global/docker-compose.zilliz.yml19.5 KB
  • install.sh55.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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、数据库密码或应用密钥。
  • 如果宿主机已有反向代理、域名或云厂商防火墙,先完成本机部署验证,再提醒用户开放或映射脚本最终输出的宿主机端口。默认 FastGPT/Sandbox Proxy 为 3000/3006,MCP 为 3003;仅旧版外部 S3 下载链路还需要开放 9000。

部署流程

  1. 检查运行环境:

    docker -v
    docker compose version
    curl --version
    

    如果 Docker 或 Compose 不存在,先向用户说明缺失项。只有在用户授权安装系统软件时,才安装 Docker。

  2. 创建空的 fastgpt 部署目录:

    mkdir -p ~/fastgpt
    cd ~/fastgpt
    if [ -n "$(ls -A .)" ]; then
      echo "当前目录非空,请先确认是否继续或改用新的空目录。"
      exit 1
    fi
    

    如果目录非空,先读取文件和 docker compose ps 判断是否已有部署,不要直接覆盖。让用户确认继续使用当前目录、备份旧文件,或改用新的空目录。

  3. 下载并运行官方脚本:

    curl -fsSL https://doc.fastgpt.cn/deploy/install.sh -o install.sh
    FASTGPT_NON_INTERACTIVE=true bash install.sh
    

    非交互模式会默认选择最新稳定版本、国内镜像源、PostgreSQL + pgvector、自动随机密钥,并把 MCP 地址设置为检测到的第一个主 IP。还必须提供用户访问地址 FASTGPT_FE_DOMAIN;启用 Agent/Skill Sandbox 时,再提供 FASTGPT_SANDBOX_PROXY_URL,v4.16 还需要 FASTGPT_SANDBOX_PREVIEW_PROXY_URL。当前版本的默认 short-proxy 下载模式不需要配置外部 S3 地址。

    如果用户明确给了 MCP 公网域名或固定 IP,用环境变量覆盖 endpoint:

    FASTGPT_NON_INTERACTIVE=true \
    FASTGPT_MCP_ENDPOINT=https://mcp.example.com:3003 \
    bash install.sh
    

    FASTGPT_S3_ENDPOINT 仅用于仍包含 STORAGE_EXTERNAL_ENDPOINT 的 v4.14 或本地旧版 Compose。

    可选覆盖项:

    • 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。
    • FASTGPT_PORT:FastGPT 宿主机端口,默认 3000;仅修改 fastgpt-app 的宿主机映射。
    • FASTGPT_SANDBOX_PROXY_PORT:Sandbox Proxy 宿主机端口,默认 3006;仅修改 fastgpt-agent-sandbox-proxy 的宿主机映射。

    FASTGPT_FE_DOMAIN、FASTGPT_SANDBOX_PROXY_URL 和预览地址是浏览器访问地址,与上述宿主机端口独立。使用反向代理时,即使公网地址使用 :443,也不会把 Compose 上游端口改成 443。

    记录脚本最终输出中的 root 登录密码和提示的访问地址。

  4. 启动服务:

    docker compose up -d
    

    如果脚本提示需要先预热 OpenSandbox 镜像,先执行脚本输出的 docker compose --profile prepull pull ... 命令,再启动服务。

  5. 监听运行状态:

    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. 验证访问:

    curl -I http://localhost:3000
    

    如果用户设置了 FASTGPT_PORT,将命令中的 3000 替换为脚本输出的 FastGPT 宿主机端口;如果用户提供了公网 IP 或域名,也验证对应地址。浏览器访问地址应以 FASTGPT_FE_DOMAIN 为准。

常见问题处理

  • 端口冲突:用 docker compose ps 和 docker compose logs 确认冲突端口,设置 FASTGPT_PORT 或 FASTGPT_SANDBOX_PROXY_PORT 重新运行脚本,或修改 docker-compose.yml 左侧宿主机端口(例如 3001:3000),再运行 docker compose up -d。
  • 旧版 S3 地址错误:仅 v4.14 或自定义旧版 Compose 需要检查 STORAGE_EXTERNAL_ENDPOINT;该地址必须同时可被客户端和 FastGPT 容器访问,不能是 127.0.0.1 或 localhost。
  • Mongo 启动失败且日志出现 Illegal instruction:CPU 可能不支持 AVX,把 Mongo 镜像切换为 4.x 版本后重建相关容器。
  • 数据库或向量库未就绪:先看对应容器日志,不要删除数据卷;只有确认是首次失败且没有有效数据时,才建议用户清理数据卷重试。
  • 配置文件改动后:运行 docker compose up -d 让 Compose 应用变更;必要时只重启相关服务。

最终回复

使用用户的语言习惯回复。如果用户使用中文提问,用中文返回;如果用户使用英文提问,用英文返回;如果用户混合使用多种语言,优先使用用户主要使用的语言。

完全成功后,返回:

  • FastGPT 访问地址:脚本中设置的 FASTGPT_FE_DOMAIN。
  • 登录账号:root。
  • 登录密码:脚本输出的随机密码,或 docker-compose.yml 中的 DEFAULT_ROOT_PSW。
  • 已开放或需要开放的宿主机端口:以脚本最终输出的 FastGPT/Sandbox Proxy 映射为准(默认 3000、3006),MCP 为 3003;仅旧版外部 S3 下载链路还需要 9000。
  • 下一步动作:登录后到 管理员-模型提供商 配置语言模型和索引模型;如需使用系统插件,到插件市场安装;如需公网 HTTPS,配置域名和反向代理。

如果未完全成功,返回当前卡住的容器、关键日志、已尝试的修复动作和下一步需要用户确认的事项。

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

add-permission

FreeSummary

Integrate new FastGPT resources, such as AgentSkill or Plugin, with permission management. Choose an integration guide based on resource hierarchy and permission inheritance, locate the relevant code, and review a checklist for missing implementation steps.

  • Adding permission support to a new FastGPT resource
  • Choosing an integration path based on permission inheritance
  • Finding code locations for permission definitions and checks
labring/FastGPT29.9KUpdated Oct 16, 2026

api-development

FreeSummary

Develop and review FastGPT APIs with consistent input and output checks, TypeScript types, and OpenAPI documentation. It guides the use of Zod schemas, definitions that describe and validate data, alongside permission checks and reusable structures.

  • Adding a new FastGPT API route
  • Changing API inputs or responses
  • Reviewing API validation and documentation
labring/FastGPT29.9KUpdated Oct 16, 2026

ci-workflow-sync

FreeSummary

Keep FastGPT build and test workflows aligned across GitHub Actions and Forgejo Actions. Adapt registry destinations, credentials, proxy settings, and platform-specific steps so the corresponding workflows support the internal network environment.

  • Synchronizing CI changes across GitHub and Forgejo
  • Adapting image builds for an internal network
  • Checking pull requests for missing workflow updates
labring/FastGPT29.9KUpdated Oct 16, 2026

Retire a FastGPT workflow node while preserving existing workflows. The skill guides changes to templates, execution handlers, and interface references so the node disappears from creation menus but still loads, runs, and displays a replacement notice.

  • Retiring a FastGPT workflow node
  • Hiding a node from creation menus
  • Preserving existing workflows during node retirement
labring/FastGPT29.9KUpdated Oct 16, 2026

doc-i18n

FreeSummary

Translate FastGPT documentation from Chinese into natural English for North American readers. Follow the shared product glossary, preserve document structure and code, synchronize navigation files, and check for missing translations or English pages that need updates.

  • Updating English docs after changes to Chinese pages
  • Translating a specified documentation folder
  • Synchronizing English navigation with translated pages
labring/FastGPT29.9KUpdated Oct 16, 2026

i18n-translate

FreeSummary

Translate selected FastGPT interface text files from Simplified Chinese into every supported target locale. Check product terminology and interface context, preserve JSON structure and placeholders, and validate the translated files for consistency.

  • Translating a selected interface text file into all supported locales
  • Updating several translation files together
  • Translating every namespace from completed Chinese source text
labring/FastGPT29.9KUpdated Oct 16, 2026

See all skills by labring

Report a problem with this skill