mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
deploy docs
This commit is contained in:
10
README.md
10
README.md
@@ -22,6 +22,7 @@ OPENAI_BASE_URL=https://api.openai.com/v1
|
|||||||
OPENAI_BASE_URL_AUTH=可选的安全凭证
|
OPENAI_BASE_URL_AUTH=可选的安全凭证
|
||||||
queueTask=1
|
queueTask=1
|
||||||
parentUrl=https://hostname/api/openapi/startEvents
|
parentUrl=https://hostname/api/openapi/startEvents
|
||||||
|
# 发送邮箱验证码配置。用的是QQ邮箱。参考 nodeMail 获取MAILE_CODE,自行百度。
|
||||||
MY_MAIL=xxx@qq.com
|
MY_MAIL=xxx@qq.com
|
||||||
MAILE_CODE=xxx
|
MAILE_CODE=xxx
|
||||||
aliAccessKeyId=xxx
|
aliAccessKeyId=xxx
|
||||||
@@ -85,7 +86,7 @@ docker-compose -v
|
|||||||
|
|
||||||
手动创建或者直接把 deploy 里内容复制过去,然后把 deploy 文件夹改名为: fastgpt
|
手动创建或者直接把 deploy 里内容复制过去,然后把 deploy 文件夹改名为: fastgpt
|
||||||
|
|
||||||
**/root/fastgpt/pg/init.sql PG 数据库初始化**
|
**/root/fast-gpt/pg/init.sql PG 数据库初始化**
|
||||||
|
|
||||||
```sql
|
```sql
|
||||||
set -e
|
set -e
|
||||||
@@ -109,7 +110,7 @@ CREATE INDEX modelData_modelId_index ON modelData USING HASH (model_id);
|
|||||||
EOSQL
|
EOSQL
|
||||||
```
|
```
|
||||||
|
|
||||||
**/root/fastgpt/nginx/nginx.conf Nginx 配置**
|
**/root/fast-gpt/nginx/nginx.conf Nginx 配置**
|
||||||
|
|
||||||
```conf
|
```conf
|
||||||
user nginx;
|
user nginx;
|
||||||
@@ -172,7 +173,7 @@ http {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
**/root/fastgpt/docker-compose.yml 核心部署文件**
|
**/root/fast-gpt/docker-compose.yml 核心部署文件**
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
version: '3.3'
|
version: '3.3'
|
||||||
@@ -202,6 +203,8 @@ services:
|
|||||||
- aliTemplateCode=SMS_xxxx
|
- aliTemplateCode=SMS_xxxx
|
||||||
# token加密凭证(随便填,作为登录凭证)
|
# token加密凭证(随便填,作为登录凭证)
|
||||||
- TOKEN_KEY=xxxx
|
- TOKEN_KEY=xxxx
|
||||||
|
- queueTask=1
|
||||||
|
- parentUrl=https://hostname/api/openapi/startEvents
|
||||||
# 和下方mongo镜像的username,password对应
|
# 和下方mongo镜像的username,password对应
|
||||||
- MONGODB_URI=mongodb://username:passsword@0.0.0.0:27017/?authSource=admin
|
- MONGODB_URI=mongodb://username:passsword@0.0.0.0:27017/?authSource=admin
|
||||||
- MONGODB_NAME=xxx
|
- MONGODB_NAME=xxx
|
||||||
@@ -211,7 +214,6 @@ services:
|
|||||||
- PG_USER=fastgpt # POSTGRES_USER
|
- PG_USER=fastgpt # POSTGRES_USER
|
||||||
- PG_PASSWORD=1234 # POSTGRES_PASSWORD
|
- PG_PASSWORD=1234 # POSTGRES_PASSWORD
|
||||||
- PG_DB_NAME=fastgpt # POSTGRES_DB
|
- PG_DB_NAME=fastgpt # POSTGRES_DB
|
||||||
# openai api key
|
|
||||||
- OPENAIKEY=sk-xxxxx
|
- OPENAIKEY=sk-xxxxx
|
||||||
nginx:
|
nginx:
|
||||||
image: nginx:alpine3.17
|
image: nginx:alpine3.17
|
||||||
|
Reference in New Issue
Block a user