Skip to content

Commit 1c2bc71

Browse files
authored
update doc (#5132)
* update doc * update doc * update doc
1 parent 33d40fd commit 1c2bc71

File tree

7 files changed

+718
-166
lines changed

7 files changed

+718
-166
lines changed

deploy/docker/docker-compose-milvus.yml

Lines changed: 84 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
version: '3.3'
77
services:
8-
minio:
9-
container_name: minio
8+
# Vector DB
9+
milvus-minio:
10+
container_name: milvus-minio
1011
image: minio/minio:RELEASE.2023-03-20T20-16-18Z
1112
environment:
1213
MINIO_ACCESS_KEY: minioadmin
@@ -17,7 +18,7 @@ services:
1718
networks:
1819
- fastgpt
1920
volumes:
20-
- ./minio:/minio_data
21+
- ./milvus-minio:/minio_data
2122
command: minio server /minio_data --console-address ":9001"
2223
healthcheck:
2324
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
@@ -51,7 +52,7 @@ services:
5152
- seccomp:unconfined
5253
environment:
5354
ETCD_ENDPOINTS: milvusEtcd:2379
54-
MINIO_ADDRESS: minio:9000
55+
MINIO_ADDRESS: milvus-minio:9000
5556
networks:
5657
- fastgpt
5758
volumes:
@@ -64,15 +65,15 @@ services:
6465
retries: 3
6566
depends_on:
6667
- 'milvusEtcd'
67-
- 'minio'
68+
- 'milvus-minio'
6869

70+
# DB
6971
mongo:
7072
image: mongo:5.0.18 # dockerhub
7173
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18 # 阿里云
74+
# image: mongo:4.4.29 # cpu不支持AVX时候使用
7275
container_name: mongo
7376
restart: always
74-
ports:
75-
- 27017:27017
7677
networks:
7778
- fastgpt
7879
command: mongod --keyFile /data/mongodb.key --replSet rs0
@@ -114,8 +115,6 @@ services:
114115
redis:
115116
image: redis:7.2-alpine
116117
container_name: redis
117-
# ports:
118-
# - 6379:6379
119118
networks:
120119
- fastgpt
121120
restart: always
@@ -129,26 +128,27 @@ services:
129128
start_period: 30s
130129
volumes:
131130
- ./redis/data:/data
132-
133-
# fastgpt
134-
sandbox:
135-
container_name: sandbox
136-
image: ghcr.io/labring/fastgpt-sandbox:v4.9.14 # git
137-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.14 # 阿里云
138-
networks:
139-
- fastgpt
131+
fastgpt-minio:
132+
image: minio/minio:latest
133+
container_name: fastgpt-minio
140134
restart: always
141-
fastgpt-mcp-server:
142-
container_name: fastgpt-mcp-server
143-
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.14 # git
144-
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.14 # 阿里云
145-
ports:
146-
- 3005:3000
147135
networks:
148136
- fastgpt
149-
restart: always
137+
ports: # comment out if you do not need to expose the port (in production environment, you should not expose the port)
138+
- '9000:9000'
139+
- '9001:9001'
150140
environment:
151-
- FASTGPT_ENDPOINT=http://fastgpt:3000
141+
- MINIO_ROOT_USER=minioadmin
142+
- MINIO_ROOT_PASSWORD=minioadmin
143+
volumes:
144+
- ./fastgpt-minio:/data
145+
command: server /data --console-address ":9001"
146+
healthcheck:
147+
test: ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
148+
interval: 30s
149+
timeout: 20s
150+
retries: 3
151+
152152
fastgpt:
153153
container_name: fastgpt
154154
image: ghcr.io/labring/fastgpt:v4.9.14 # git
@@ -159,53 +159,93 @@ services:
159159
- fastgpt
160160
depends_on:
161161
- mongo
162-
- milvusStandalone
163162
- sandbox
163+
- milvusStandalone
164164
restart: always
165165
environment:
166166
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
167167
- FE_DOMAIN=
168168
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
169169
- DEFAULT_ROOT_PSW=1234
170-
# AI Proxy 的地址,如果配了该地址,优先使用
171-
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
172-
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
173-
- AIPROXY_API_TOKEN=aiproxy
174-
# 模型中转地址(如果用了 AI Proxy,下面 2 个就不需要了,旧版 OneAPI 用户,使用下面的变量)
175-
# - OPENAI_BASE_URL=http://oneapi:3000/v1
176-
# - CHAT_API_KEY=sk-fastgpt
177-
# 数据库最大连接数
178-
- DB_MAX_LINK=30
179170
# 登录凭证密钥
180171
- TOKEN_KEY=any
181172
# root的密钥,常用于升级时候的初始化请求
182173
- ROOT_KEY=root_key
183174
# 文件阅读加密
184175
- FILE_TOKEN_KEY=filetoken
176+
# 密钥加密key
177+
- AES256_SECRET_KEY=fastgptkey
178+
179+
# plugin 地址
180+
- PLUGIN_BASE_URL=http://fastgpt-plugin:3000
181+
- PLUGIN_TOKEN=xxxxxx
182+
# sandbox 地址
183+
- SANDBOX_URL=http://sandbox:3000
184+
# AI Proxy 的地址,如果配了该地址,优先使用
185+
- AIPROXY_API_ENDPOINT=http://aiproxy:3000
186+
# AI Proxy 的 Admin Token,与 AI Proxy 中的环境变量 ADMIN_KEY
187+
- AIPROXY_API_TOKEN=aiproxy
188+
189+
# 数据库最大连接数
190+
- DB_MAX_LINK=30
185191
# MongoDB 连接参数. 用户名myusername,密码mypassword。
186192
- MONGODB_URI=mongodb://myusername:mypassword@mongo:27017/fastgpt?authSource=admin
187-
# zilliz 连接参数
193+
# Redis 连接参数
194+
- REDIS_URL=redis://default:mypassword@redis:6379
195+
# 向量库 连接参数
188196
- MILVUS_ADDRESS=http://milvusStandalone:19530
189197
- MILVUS_TOKEN=none
190-
# Redis 地址
191-
- REDIS_URL=redis://default:mypassword@redis:6379
192-
# sandbox 地址
193-
- SANDBOX_URL=http://sandbox:3000
198+
194199
# 日志等级: debug, info, warn, error
195200
- LOG_LEVEL=info
196201
- STORE_LOG_LEVEL=warn
197202
# 工作流最大运行次数
198203
- WORKFLOW_MAX_RUN_TIMES=1000
199204
# 批量执行节点,最大输入长度
200205
- WORKFLOW_MAX_LOOP_TIMES=100
201-
# 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
202-
- ALLOWED_ORIGINS=
203-
# 是否开启IP限制,默认不开启
204-
- USE_IP_LIMIT=false
205206
# 对话文件过期天数
206207
- CHAT_FILE_EXPIRE_TIME=7
207208
volumes:
208209
- ./config.json:/app/data/config.json
210+
# fastgpt
211+
sandbox:
212+
container_name: sandbox
213+
image: ghcr.io/labring/fastgpt-sandbox:v4.9.14 # git
214+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.9.14 # 阿里云
215+
networks:
216+
- fastgpt
217+
restart: always
218+
fastgpt-mcp-server:
219+
container_name: fastgpt-mcp-server
220+
image: ghcr.io/labring/fastgpt-mcp_server:v4.9.14 # git
221+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-mcp_server:v4.9.14 # 阿里云
222+
ports:
223+
- 3005:3000
224+
networks:
225+
- fastgpt
226+
restart: always
227+
environment:
228+
- FASTGPT_ENDPOINT=http://fastgpt:3000
229+
# fastgpt-plugin
230+
fastgpt-plugin:
231+
image: ghcr.io/labring/fastgpt-plugin:v0.1 # git
232+
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin:v0.1 # 阿里云
233+
container_name: fastgpt-plugin
234+
restart: always
235+
networks:
236+
- fastgpt
237+
environment:
238+
- AUTH_TOKEN=xxxxxx # disable authentication token if you do not set this variable
239+
# 改成 minio 公网地址
240+
- MINIO_HOST=ip:9000
241+
- MINIO_PORT=9000
242+
- MINIO_USE_SSL=false
243+
- MINIO_ACCESS_KEY=minioadmin
244+
- MINIO_SECRET_KEY=minioadmin
245+
- MINIO_BUCKET=fastgpt-plugins
246+
depends_on:
247+
- fastgpt-minio:
248+
condition: service_healthy
209249

210250
# AI Proxy
211251
aiproxy:

0 commit comments

Comments
 (0)