5
5
6
6
version : ' 3.3'
7
7
services :
8
- minio :
9
- container_name : minio
8
+ # Vector DB
9
+ milvus-minio :
10
+ container_name : milvus-minio
10
11
image : minio/minio:RELEASE.2023-03-20T20-16-18Z
11
12
environment :
12
13
MINIO_ACCESS_KEY : minioadmin
@@ -17,7 +18,7 @@ services:
17
18
networks :
18
19
- fastgpt
19
20
volumes :
20
- - ./minio:/minio_data
21
+ - ./milvus- minio:/minio_data
21
22
command : minio server /minio_data --console-address ":9001"
22
23
healthcheck :
23
24
test : ['CMD', 'curl', '-f', 'http://localhost:9000/minio/health/live']
@@ -51,7 +52,7 @@ services:
51
52
- seccomp:unconfined
52
53
environment :
53
54
ETCD_ENDPOINTS : milvusEtcd:2379
54
- MINIO_ADDRESS : minio:9000
55
+ MINIO_ADDRESS : milvus- minio:9000
55
56
networks :
56
57
- fastgpt
57
58
volumes :
@@ -64,15 +65,15 @@ services:
64
65
retries : 3
65
66
depends_on :
66
67
- ' milvusEtcd'
67
- - ' minio'
68
+ - ' milvus- minio'
68
69
70
+ # DB
69
71
mongo :
70
72
image : mongo:5.0.18 # dockerhub
71
73
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/mongo:5.0.18 # 阿里云
74
+ # image: mongo:4.4.29 # cpu不支持AVX时候使用
72
75
container_name : mongo
73
76
restart : always
74
- ports :
75
- - 27017:27017
76
77
networks :
77
78
- fastgpt
78
79
command : mongod --keyFile /data/mongodb.key --replSet rs0
@@ -114,8 +115,6 @@ services:
114
115
redis :
115
116
image : redis:7.2-alpine
116
117
container_name : redis
117
- # ports:
118
- # - 6379:6379
119
118
networks :
120
119
- fastgpt
121
120
restart : always
@@ -129,26 +128,27 @@ services:
129
128
start_period : 30s
130
129
volumes :
131
130
- ./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
140
134
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
147
135
networks :
148
136
- 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'
150
140
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
+
152
152
fastgpt :
153
153
container_name : fastgpt
154
154
image : ghcr.io/labring/fastgpt:v4.9.14 # git
@@ -159,53 +159,93 @@ services:
159
159
- fastgpt
160
160
depends_on :
161
161
- mongo
162
- - milvusStandalone
163
162
- sandbox
163
+ - milvusStandalone
164
164
restart : always
165
165
environment :
166
166
# 前端外部可访问的地址,用于自动补全文件资源路径。例如 https:fastgpt.cn,不能填 localhost。这个值可以不填,不填则发给模型的图片会是一个相对路径,而不是全路径,模型可能伪造Host。
167
167
- FE_DOMAIN=
168
168
# root 密码,用户名为: root。如果需要修改 root 密码,直接修改这个环境变量,并重启即可。
169
169
- 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
179
170
# 登录凭证密钥
180
171
- TOKEN_KEY=any
181
172
# root的密钥,常用于升级时候的初始化请求
182
173
- ROOT_KEY=root_key
183
174
# 文件阅读加密
184
175
- 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
185
191
# MongoDB 连接参数. 用户名myusername,密码mypassword。
186
192
- MONGODB_URI=mongodb://myusername:mypassword@mongo:27017/fastgpt?authSource=admin
187
- # zilliz 连接参数
193
+ # Redis 连接参数
194
+ - REDIS_URL=redis://default:mypassword@redis:6379
195
+ # 向量库 连接参数
188
196
- MILVUS_ADDRESS=http://milvusStandalone:19530
189
197
- MILVUS_TOKEN=none
190
- # Redis 地址
191
- - REDIS_URL=redis://default:mypassword@redis:6379
192
- # sandbox 地址
193
- - SANDBOX_URL=http://sandbox:3000
198
+
194
199
# 日志等级: debug, info, warn, error
195
200
- LOG_LEVEL=info
196
201
- STORE_LOG_LEVEL=warn
197
202
# 工作流最大运行次数
198
203
- WORKFLOW_MAX_RUN_TIMES=1000
199
204
# 批量执行节点,最大输入长度
200
205
- WORKFLOW_MAX_LOOP_TIMES=100
201
- # 自定义跨域,不配置时,默认都允许跨域(多个域名通过逗号分割)
202
- - ALLOWED_ORIGINS=
203
- # 是否开启IP限制,默认不开启
204
- - USE_IP_LIMIT=false
205
206
# 对话文件过期天数
206
207
- CHAT_FILE_EXPIRE_TIME=7
207
208
volumes :
208
209
- ./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
209
249
210
250
# AI Proxy
211
251
aiproxy :
0 commit comments