You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/self-host/configuration/environments.mdx
+41-43Lines changed: 41 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -116,20 +116,18 @@ Only effective when starting with docker image or docker-compose.
116
116
- GUNICORN_TIMEOUT: Request handling timeout. Default is 200. Recommended value is 360 to support longer SSE (Server-Sent Events) connection times.
117
117
- CELERY_WORKER_CLASS: Similar to `SERVER_WORKER_CLASS`. Default is gevent. If using windows, it can be switched to sync or solo.
118
118
- CELERY_WORKER_AMOUNT: The number of Celery workers. The default is 1, and can be set as needed.
119
-
- HTTP_PROXY: HTTP proxy address, used to solve the problem of accessing OpenAI and HuggingFace in China. Note that if the proxy is deployed on the host machine (e.g. `http://127.0.0.1:7890`), the proxy address should be the same as when connecting to a local model, using the host machine address inside the Docker container (e.g. `http://192.168.1.100:7890` or `http://172.17.0.1:7890`).
120
-
- HTTPS_PROXY: HTTPS proxy address, used to solve the problem of accessing OpenAI and HuggingFace in China. Same as above.
121
-
- COMPOSE_PROFILES: Selectively start service groups. The default value is `${VECTOR_STORE:-weaviate},${DB_TYPE:-postgresql}`, which will be automatically assigned by `VECTOR_STORE` and `DB_TYPE`. Generally, no adjustment is needed, only when the metadata selection is oceanbase or seekdb, or the vector database selection is seekdb, manual adjustment is required.
119
+
- COMPOSE_PROFILES: Selectively start service groups. The default value is `${VECTOR_STORE:-weaviate},${DB_TYPE:-postgresql}`, which is automatically derived from `VECTOR_STORE` and `DB_TYPE`.
122
120
123
121
### Database Configuration
124
122
125
123
The database uses PostgreSQL. Please use the public schema.
126
124
127
-
- DB_TYPE: Database type. Default is postgresql.
125
+
- DB_TYPE: Database type.
128
126
129
-
**Available enumeration types include:**
127
+
Available values include:
130
128
131
-
-`postgresql`
132
-
-`mysql` (other mysql-compatible databases can also use this value. Example: OceanBase, seekdb, etc.)
129
+
-`postgresql`(default)
130
+
-`mysql` (MySQL-compatible databases like OceanBase and seekdb can also use this value)
133
131
134
132
- DB_USERNAME: username
135
133
- DB_PASSWORD: password
@@ -252,18 +250,18 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi
252
250
253
251
- VECTOR_STORE
254
252
255
-
**Available enumeration types include:**
253
+
Available values include:
256
254
257
255
-`weaviate`
258
-
-`oceanbase`
259
-
-`seekdb` (share the same configuration as `oceanbase`)
260
256
-`qdrant`
261
257
-`milvus`
262
258
-`zilliz` (share the same configuration as `milvus`)
263
259
-`myscale`
264
260
-`pinecone` (not yet open)
265
261
-`analyticdb`
266
262
-`couchbase`
263
+
-`oceanbase`
264
+
-`seekdb` (share the same configuration as `oceanbase`)
267
265
-`tablestore`
268
266
-`lindorm`
269
267
-`tencent`
@@ -287,38 +285,6 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi
287
285
288
286
Whether to use the gRPC method to interact with Weaviate, performance will greatly increase when enabled, may not be usable locally, default is true.
289
287
290
-
- OCEANBASE_VECTOR_HOST
291
-
292
-
The hostname or IP address of OceanBase vector database.
293
-
294
-
- OCEANBASE_VECTOR_PORT
295
-
296
-
The port of OceanBase vector database.
297
-
298
-
- OCEANBASE_VECTOR_USER
299
-
300
-
The username of OceanBase vector database.
301
-
302
-
- OCEANBASE_VECTOR_PASSWORD
303
-
304
-
The password of OceanBase vector database user.
305
-
306
-
- OCEANBASE_VECTOR_DATABASE
307
-
308
-
The database name of OceanBase vector database.
309
-
310
-
- OCEANBASE_CLUSTER_NAME
311
-
312
-
The cluster name of OceanBase vector database, only available for Docker deployment.
313
-
314
-
- OCEANBASE_MEMORY_LIMIT
315
-
316
-
The memory limit of OceanBase vector database, only available for Docker deployment.
317
-
318
-
- SEEKDB_MEMORY_LIMIT
319
-
320
-
The memory limit of Seekdb, only available for Docker deployment.
321
-
322
288
- QDRANT_URL
323
289
324
290
Qdrant endpoint address, such as: `https://your-qdrant-cluster-url.qdrant.tech/`
@@ -427,6 +393,38 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi
427
393
428
394
The name of the scope to use.
429
395
396
+
- OCEANBASE_VECTOR_HOST
397
+
398
+
The hostname or IP address of OceanBase vector database.
399
+
400
+
- OCEANBASE_VECTOR_PORT
401
+
402
+
The port of OceanBase vector database.
403
+
404
+
- OCEANBASE_VECTOR_USER
405
+
406
+
The username of OceanBase vector database.
407
+
408
+
- OCEANBASE_VECTOR_PASSWORD
409
+
410
+
The password of OceanBase vector database user.
411
+
412
+
- OCEANBASE_VECTOR_DATABASE
413
+
414
+
The database name of OceanBase vector database.
415
+
416
+
- OCEANBASE_CLUSTER_NAME
417
+
418
+
The cluster name of OceanBase vector database, only available for Docker deployment.
419
+
420
+
- OCEANBASE_MEMORY_LIMIT
421
+
422
+
The memory limit of OceanBase vector database, only available for Docker deployment.
423
+
424
+
- SEEKDB_MEMORY_LIMIT
425
+
426
+
The memory limit of seekdb, only available for Docker deployment.
427
+
430
428
- TABLESTORE_ENDPOINT
431
429
432
430
The endpoint address of the TableStore server (e.g. 'https://instance-name.cn-hangzhou.ots.aliyuncs.com')
@@ -545,7 +543,7 @@ Used to store uploaded data set files, team/tenant encryption keys, and other fi
545
543
- UPLOAD_FILE_BATCH_LIMIT: The maximum number of files that can be uploaded at a time, default 5.
* If the `.env.example` file has been updated, be sure to modify your local `.env` file accordingly.
141
142
142
-
* If the `.env.example` file has been updated, be sure to modify your local `.env`file accordingly.
143
-
* Check and modify the configuration items in the `.env` file as needed to ensure they match your actual environment. You may need to add any new variables from `.env.example` to your `.env` file, and update any values that have changed.
143
+
* Check and modify the configuration items in the `.env` file as needed to ensure they match your actual environment. You may need to add any new variables from `.env.example` to your `.env`file, and update any values that have changed.
144
+
</Note>
144
145
145
-
###Access Dify
146
+
## Access Dify
146
147
147
148
Access administrator initialization page to set up the admin account:
148
149
@@ -164,19 +165,19 @@ http://localhost
164
165
http://your_server_ip
165
166
```
166
167
167
-
###Customize Dify
168
+
## Customize Dify
168
169
169
170
Edit the environment variable values in your `.env` file directly. Then, restart Dify with:
170
171
171
-
You can switch the metadata database by modifying `DB_TYPE` and switch the vector database by modifying `VECTOR_STORE`. For more information, please refer to the [environment variables](https://docs.dify.ai/en/self-host/configuration/environments).
172
-
173
172
```
174
173
docker compose down
175
174
docker compose up -d
176
175
```
177
176
178
-
The full set of annotated environment variables along can be found under docker/.env.example.
177
+
<Tip>
178
+
The full set of annotated environment variables along can be found under `docker/.env.example`. For more information, see [environment variables](/en/self-host/configuration/environments).
179
+
</Tip>
179
180
180
-
###Read More
181
+
## Read More
181
182
182
-
If you have any questions, please refer to[FAQs](/en/self-host/quick-start/faqs).
183
+
If you have any questions, see[FAQs](/en/self-host/quick-start/faqs).
0 commit comments