diff --git a/docSite/docs/develop/deploy/docker.md b/docSite/docs/develop/deploy/docker.md index f2183893d..0bf05baa0 100644 --- a/docSite/docs/develop/deploy/docker.md +++ b/docSite/docs/develop/deploy/docker.md @@ -78,11 +78,13 @@ services: - pg restart: always environment: + # root 密码,用户名为: root - DEFAULT_ROOT_PSW=1234 + # 中转地址,如果是用官方号,不需要管 + - OPENAI_BASE_URL=https://api.openai.com/v1 + - CHAT_API_KEY=sk-xxxx - DB_MAX_LINK=5 # database max link - # token加密凭证(随便填,作为登录凭证) - TOKEN_KEY=any - # root key, 最高权限,可以内部接口互相调用 - ROOT_KEY=root_key # mongo 配置,不需要改 - MONGODB_URI=mongodb://username:password@mongo:27017/?authSource=admin @@ -93,12 +95,7 @@ services: - PG_USER=username - PG_PASSWORD=password - PG_DB_NAME=postgres - # 用了中转的话,需要修改这个变量 - - OPENAI_BASE_URL=https://api.openai.com/v1 - # 用了 ONEAPI 则填写该地址 - # - ONEAPI_URL=https://xxxx.cloud.sealos.io/v1 - # OpenAI 的 key 或者 ONEAPI 的key,填了 ONEAPI_URL 则填写 ONEAPI 的 key - - CHAT_API_KEY=sk-xxxx + networks: fastgpt: ``` @@ -142,8 +139,12 @@ image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:latest # 阿里云 network_mode: host restart: always container_name: fastgpt -environment: # 可选的变量,不需要的话需要去掉 +environment: + # root 密码,用户名为: root - DEFAULT_ROOT_PSW=1234 + # 中转地址,如果是用官方号,不需要管 + - OPENAI_BASE_URL=https://api.openai.com/v1 + - CHAT_API_KEY=sk-xxxx - DB_MAX_LINK=5 # database max link # token加密凭证(随便填,作为登录凭证) - TOKEN_KEY=any @@ -158,12 +159,6 @@ environment: # 可选的变量,不需要的话需要去掉 - PG_USER=username - PG_PASSWORD=password - PG_DB_NAME=postgres - # 用了中转的话,需要修改这个变量 - - OPENAI_BASE_URL=https://api.openai.com/v1 - # 用了 ONEAPI 则填写该地址 - # - ONEAPI_URL=https://xxxx.cloud.sealos.io/v1 - # OpenAI 的 key 或者 ONEAPI 的key,填了 ONEAPI_URL 则填写 ONEAPI 的 key - - CHAT_API_KEY=sk-xxxx ``` ## 四、运行 docker-compose diff --git a/docSite/docs/develop/deploy/imgs/sealos1.png b/docSite/docs/develop/deploy/imgs/sealos1.png new file mode 100644 index 000000000..7313d36f5 Binary files /dev/null and b/docSite/docs/develop/deploy/imgs/sealos1.png differ diff --git a/docSite/docs/develop/deploy/imgs/sealos2.png b/docSite/docs/develop/deploy/imgs/sealos2.png new file mode 100644 index 000000000..e4bcf8689 Binary files /dev/null and b/docSite/docs/develop/deploy/imgs/sealos2.png differ diff --git a/docSite/docs/develop/deploy/imgs/sealos3.png b/docSite/docs/develop/deploy/imgs/sealos3.png new file mode 100644 index 000000000..32f0fb67f Binary files /dev/null and b/docSite/docs/develop/deploy/imgs/sealos3.png differ diff --git a/docSite/docs/develop/deploy/sealos.md b/docSite/docs/develop/deploy/sealos.md index 09291f608..8dedf2237 100644 --- a/docSite/docs/develop/deploy/sealos.md +++ b/docSite/docs/develop/deploy/sealos.md @@ -4,4 +4,16 @@ sidebar_position: 1 # Sealos 一键部署 -222 +无需服务器、无需魔法、无需域名,点击即可部署 👇 + +[![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://cloud.sealos.io/?openapp=system-fastdeploy%3FtemplateName%3Dfastgpt) + +由于需要部署数据库,部署完后需要等待 2~4 分钟才能正常访问。默认用了最低配置,首次访问时会有些慢。 + +![](./imgs/sealos1.png) + +## 运行 + +点击 sealos 提供的【外网地址】即可使用。登录用户名为: root,密码是刚设置的环境变量,上图中设置了: 1234 + +![](./imgs/sealos3.png) diff --git a/docSite/docs/develop/dev.md b/docSite/docs/develop/dev.md index e1b16cd30..334930565 100644 --- a/docSite/docs/develop/dev.md +++ b/docSite/docs/develop/dev.md @@ -1,6 +1,6 @@ # 本地开发 -第一次开发,需要先部署数据库,建议本地开发可以随便找一台 2c2g 的轻量小数据库实践。数据库部署教程:[Docker 快速部署](../deploy/docker) +第一次开发,需要先部署数据库,建议本地开发可以随便找一台 2c2g 的轻量小数据库实践。数据库部署教程:[Docker 快速部署](/docs/develop/deploy/docker) client 目录下为 FastGPT 核心代码。NextJS 框架前后端在一起的,api 服务位于 src/pages/api 内。 diff --git a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos1.png b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos1.png new file mode 100644 index 000000000..7313d36f5 Binary files /dev/null and b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos1.png differ diff --git a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos2.png b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos2.png new file mode 100644 index 000000000..e4bcf8689 Binary files /dev/null and b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos2.png differ diff --git a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos3.png b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos3.png new file mode 100644 index 000000000..32f0fb67f Binary files /dev/null and b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/imgs/sealos3.png differ diff --git a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/sealos.md b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/sealos.md index 8bc167353..8dedf2237 100644 --- a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/sealos.md +++ b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/sealos.md @@ -8,6 +8,12 @@ sidebar_position: 1 [![](https://raw.githubusercontent.com/labring-actions/templates/main/Deploy-on-Sealos.svg)](https://cloud.sealos.io/?openapp=system-fastdeploy%3FtemplateName%3Dfastgpt) -由于需要部署数据库,部署完后需要等待 2~4 分钟才能正常访问。 +由于需要部署数据库,部署完后需要等待 2~4 分钟才能正常访问。默认用了最低配置,首次访问时会有些慢。 + +![](./imgs/sealos1.png) ## 运行 + +点击 sealos 提供的【外网地址】即可使用。登录用户名为: root,密码是刚设置的环境变量,上图中设置了: 1234 + +![](./imgs/sealos3.png) diff --git a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/dev.md b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/dev.md index e1b16cd30..334930565 100644 --- a/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/dev.md +++ b/docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/dev.md @@ -1,6 +1,6 @@ # 本地开发 -第一次开发,需要先部署数据库,建议本地开发可以随便找一台 2c2g 的轻量小数据库实践。数据库部署教程:[Docker 快速部署](../deploy/docker) +第一次开发,需要先部署数据库,建议本地开发可以随便找一台 2c2g 的轻量小数据库实践。数据库部署教程:[Docker 快速部署](/docs/develop/deploy/docker) client 目录下为 FastGPT 核心代码。NextJS 框架前后端在一起的,api 服务位于 src/pages/api 内。