Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
f70a9885
authored
Aug 10, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: docs
parent
63c832d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
251 additions
and
6 deletions
+251
-6
docSite/docs/develop/deploy/docker.md
+92
-1
docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/docker.md
+92
-1
files/deploy/fastgpt/config.json
+64
-0
files/deploy/fastgpt/docker-compose.yml
+3
-4
No files found.
docSite/docs/develop/deploy/docker.md
View file @
f70a9885
...
@@ -97,7 +97,6 @@ services:
...
@@ -97,7 +97,6 @@ services:
-
PG_USER=username
-
PG_USER=username
-
PG_PASSWORD=password
-
PG_PASSWORD=password
-
PG_DB_NAME=postgres
-
PG_DB_NAME=postgres
networks
:
networks
:
fastgpt
:
fastgpt
:
```
```
...
@@ -179,3 +178,95 @@ docker-compose up -d
...
@@ -179,3 +178,95 @@ docker-compose up -d
### 1. 如何更新?
### 1. 如何更新?
执行
`docker-compose up -d`
会自动拉取最新镜像,一般情况下不需要执行额外操作。
执行
`docker-compose up -d`
会自动拉取最新镜像,一般情况下不需要执行额外操作。
### 2. 挂载配置文件
在和
`docker-compose.yml`
同级目录,创建一个
`config.json`
文件,内容如下:
```
json
{
"FeConfig"
:
{
"show_emptyChat"
:
true
,
"show_register"
:
false
,
"show_appStore"
:
false
,
"show_userDetail"
:
false
,
"show_git"
:
true
,
"systemTitle"
:
"FastGPT"
,
"authorText"
:
"Made by FastGPT Team."
,
"gitLoginKey"
:
""
,
"scripts"
:
[]
},
"SystemParams"
:
{
"gitLoginSecret"
:
""
,
"vectorMaxProcess"
:
15
,
"qaMaxProcess"
:
15
,
"pgIvfflatProbe"
:
20
},
"plugins"
:
{},
"ChatModels"
:
[
{
"model"
:
"gpt-3.5-turbo"
,
"name"
:
"GPT35-4k"
,
"contextMaxToken"
:
4000
,
"quoteMaxToken"
:
2000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"contextMaxToken"
:
16000
,
"quoteMaxToken"
:
8000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-4"
,
"name"
:
"GPT4-8k"
,
"contextMaxToken"
:
8000
,
"quoteMaxToken"
:
4000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
}
],
"QAModels"
:
[
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"maxToken"
:
16000
,
"price"
:
0
}
],
"VectorModels"
:
[
{
"model"
:
"text-embedding-ada-002"
,
"name"
:
"Embedding-2"
,
"price"
:
0
}
]
}
```
修改 docker-compose.yml 中 fastgpt 容器内容,增加挂载。具体配置可参考
[
config 配置说明
](
/docs/category/data-config
)
```
yml
fastgpt
:
container_name
:
fastgpt
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:latest
# 阿里云
ports
:
-
3000:3000
networks
:
-
fastgpt
depends_on
:
-
mongo
-
pg
restart
:
always
environment
:
# root 密码,用户名为: root
-
DEFAULT_ROOT_PSW=1234
volumes
:
-
./config.json:/app/data/config.json
```
docSite/i18n/zh-Hans/docusaurus-plugin-content-docs/current/develop/deploy/docker.md
View file @
f70a9885
...
@@ -97,7 +97,6 @@ services:
...
@@ -97,7 +97,6 @@ services:
-
PG_USER=username
-
PG_USER=username
-
PG_PASSWORD=password
-
PG_PASSWORD=password
-
PG_DB_NAME=postgres
-
PG_DB_NAME=postgres
networks
:
networks
:
fastgpt
:
fastgpt
:
```
```
...
@@ -179,3 +178,95 @@ docker-compose up -d
...
@@ -179,3 +178,95 @@ docker-compose up -d
### 1. 如何更新?
### 1. 如何更新?
执行
`docker-compose up -d`
会自动拉取最新镜像,一般情况下不需要执行额外操作。
执行
`docker-compose up -d`
会自动拉取最新镜像,一般情况下不需要执行额外操作。
### 2. 挂载配置文件
在和
`docker-compose.yml`
同级目录,创建一个
`config.json`
文件,内容如下:
```
json
{
"FeConfig"
:
{
"show_emptyChat"
:
true
,
"show_register"
:
false
,
"show_appStore"
:
false
,
"show_userDetail"
:
false
,
"show_git"
:
true
,
"systemTitle"
:
"FastGPT"
,
"authorText"
:
"Made by FastGPT Team."
,
"gitLoginKey"
:
""
,
"scripts"
:
[]
},
"SystemParams"
:
{
"gitLoginSecret"
:
""
,
"vectorMaxProcess"
:
15
,
"qaMaxProcess"
:
15
,
"pgIvfflatProbe"
:
20
},
"plugins"
:
{},
"ChatModels"
:
[
{
"model"
:
"gpt-3.5-turbo"
,
"name"
:
"GPT35-4k"
,
"contextMaxToken"
:
4000
,
"quoteMaxToken"
:
2000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"contextMaxToken"
:
16000
,
"quoteMaxToken"
:
8000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-4"
,
"name"
:
"GPT4-8k"
,
"contextMaxToken"
:
8000
,
"quoteMaxToken"
:
4000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
}
],
"QAModels"
:
[
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"maxToken"
:
16000
,
"price"
:
0
}
],
"VectorModels"
:
[
{
"model"
:
"text-embedding-ada-002"
,
"name"
:
"Embedding-2"
,
"price"
:
0
}
]
}
```
修改 docker-compose.yml 中 fastgpt 容器内容,增加挂载。具体配置可参考
[
config 配置说明
](
/docs/category/data-config
)
```
yml
fastgpt
:
container_name
:
fastgpt
image
:
registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:latest
# 阿里云
ports
:
-
3000:3000
networks
:
-
fastgpt
depends_on
:
-
mongo
-
pg
restart
:
always
environment
:
# root 密码,用户名为: root
-
DEFAULT_ROOT_PSW=1234
volumes
:
-
./config.json:/app/data/config.json
```
files/deploy/fastgpt/config.json
0 → 100644
View file @
f70a9885
{
"FeConfig"
:
{
"show_emptyChat"
:
true
,
"show_register"
:
false
,
"show_appStore"
:
false
,
"show_userDetail"
:
false
,
"show_git"
:
true
,
"systemTitle"
:
"FastGPT"
,
"authorText"
:
"Made by FastGPT Team."
,
"gitLoginKey"
:
""
,
"scripts"
:
[]
},
"SystemParams"
:
{
"gitLoginSecret"
:
""
,
"vectorMaxProcess"
:
15
,
"qaMaxProcess"
:
15
,
"pgIvfflatProbe"
:
20
},
"plugins"
:
{},
"ChatModels"
:
[
{
"model"
:
"gpt-3.5-turbo"
,
"name"
:
"GPT35-4k"
,
"contextMaxToken"
:
4000
,
"quoteMaxToken"
:
2000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"contextMaxToken"
:
16000
,
"quoteMaxToken"
:
8000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
},
{
"model"
:
"gpt-4"
,
"name"
:
"GPT4-8k"
,
"contextMaxToken"
:
8000
,
"quoteMaxToken"
:
4000
,
"maxTemperature"
:
1.2
,
"price"
:
0
,
"defaultSystem"
:
""
}
],
"QAModels"
:
[
{
"model"
:
"gpt-3.5-turbo-16k"
,
"name"
:
"GPT35-16k"
,
"maxToken"
:
16000
,
"price"
:
0
}
],
"VectorModels"
:
[
{
"model"
:
"text-embedding-ada-002"
,
"name"
:
"Embedding-2"
,
"price"
:
0
}
]
}
files/deploy/fastgpt/docker-compose.yml
View file @
f70a9885
...
@@ -62,10 +62,10 @@ services:
...
@@ -62,10 +62,10 @@ services:
-
PG_USER=username
-
PG_USER=username
-
PG_PASSWORD=password
-
PG_PASSWORD=password
-
PG_DB_NAME=postgres
-
PG_DB_NAME=postgres
volumes
:
-
./config.json:/app/data/config.json
networks
:
networks
:
fastgpt
:
fastgpt
:
# host 版本, 不推荐。
# host 版本, 不推荐。
# version: '3.3'
# version: '3.3'
# services:
# services:
...
@@ -123,4 +123,4 @@ networks:
...
@@ -123,4 +123,4 @@ networks:
# - PG_PORT=5432
# - PG_PORT=5432
# - PG_USER=username
# - PG_USER=username
# - PG_PASSWORD=password
# - PG_PASSWORD=password
# - PG_DB_NAME=postgres
# - PG_DB_NAME=postgres
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment