Skip to content

Commit 803e9ee

Browse files
committed
chore(docker): remove shared env vars and set env_file.
Signed-off-by: -LAN- <[email protected]>
1 parent 7978006 commit 803e9ee

File tree

2 files changed

+52
-357
lines changed

2 files changed

+52
-357
lines changed

docker/.env.example

+42-60
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ SERVER_WORKER_AMOUNT=
127127
# Defaults to gevent. If using windows, it can be switched to sync or solo.
128128
SERVER_WORKER_CLASS=
129129

130-
# Similar to SERVER_WORKER_CLASS. Default is gevent.
130+
# Similar to SERVER_WORKER_CLASS.
131131
# If using windows, it can be switched to sync or solo.
132132
CELERY_WORKER_CLASS=
133133

@@ -227,6 +227,7 @@ REDIS_PORT=6379
227227
REDIS_USERNAME=
228228
REDIS_PASSWORD=difyai123456
229229
REDIS_USE_SSL=false
230+
REDIS_DB=0
230231

231232
# Whether to use Redis Sentinel mode.
232233
# If set to true, the application will automatically discover and connect to the master node through Sentinel.
@@ -281,8 +282,6 @@ CONSOLE_CORS_ALLOW_ORIGINS=*
281282
# ------------------------------
282283

283284
# The type of storage to use for storing user files.
284-
# Supported values are `opendal` , `s3` , `azure-blob` , `google-storage`, `tencent-cos`, `huawei-obs`, `volcengine-tos`, `baidu-obs`, `supabase`
285-
# Default: `opendal`
286285
STORAGE_TYPE=opendal
287286

288287
# Apache OpenDAL Configuration, refer to https://github.com/apache/opendal
@@ -292,38 +291,30 @@ OPENDAL_SCHEME=fs
292291
OPENDAL_FS_ROOT=storage
293292

294293
# S3 Configuration
295-
# Whether to use AWS managed IAM roles for authenticating with the S3 service.
296-
# If set to false, the access key and secret key must be provided.
297-
S3_USE_AWS_MANAGED_IAM=false
298-
# The endpoint of the S3 service.
294+
#
299295
S3_ENDPOINT=
300-
# The region of the S3 service.
301296
S3_REGION=us-east-1
302-
# The name of the S3 bucket to use for storing files.
303297
S3_BUCKET_NAME=difyai
304-
# The access key to use for authenticating with the S3 service.
305298
S3_ACCESS_KEY=
306-
# The secret key to use for authenticating with the S3 service.
307299
S3_SECRET_KEY=
300+
# Whether to use AWS managed IAM roles for authenticating with the S3 service.
301+
# If set to false, the access key and secret key must be provided.
302+
S3_USE_AWS_MANAGED_IAM=false
308303

309304
# Azure Blob Configuration
310-
# The name of the Azure Blob Storage account to use for storing files.
305+
#
311306
AZURE_BLOB_ACCOUNT_NAME=difyai
312-
# The access key to use for authenticating with the Azure Blob Storage account.
313307
AZURE_BLOB_ACCOUNT_KEY=difyai
314-
# The name of the Azure Blob Storage container to use for storing files.
315308
AZURE_BLOB_CONTAINER_NAME=difyai-container
316-
# The URL of the Azure Blob Storage account.
317309
AZURE_BLOB_ACCOUNT_URL=https://<your_account_name>.blob.core.windows.net
318310

319311
# Google Storage Configuration
320-
# The name of the Google Storage bucket to use for storing files.
312+
#
321313
GOOGLE_STORAGE_BUCKET_NAME=your-bucket-name
322-
# The service account JSON key to use for authenticating with the Google Storage service.
323314
GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64=your-google-service-account-json-base64-string
324315

325316
# The Alibaba Cloud OSS configurations,
326-
# only available when STORAGE_TYPE is `aliyun-oss`
317+
#
327318
ALIYUN_OSS_BUCKET_NAME=your-bucket-name
328319
ALIYUN_OSS_ACCESS_KEY=your-access-key
329320
ALIYUN_OSS_SECRET_KEY=your-secret-key
@@ -334,55 +325,47 @@ ALIYUN_OSS_AUTH_VERSION=v4
334325
ALIYUN_OSS_PATH=your-path
335326

336327
# Tencent COS Configuration
337-
# The name of the Tencent COS bucket to use for storing files.
328+
#
338329
TENCENT_COS_BUCKET_NAME=your-bucket-name
339-
# The secret key to use for authenticating with the Tencent COS service.
340330
TENCENT_COS_SECRET_KEY=your-secret-key
341-
# The secret id to use for authenticating with the Tencent COS service.
342331
TENCENT_COS_SECRET_ID=your-secret-id
343-
# The region of the Tencent COS service.
344332
TENCENT_COS_REGION=your-region
345-
# The scheme of the Tencent COS service.
346333
TENCENT_COS_SCHEME=your-scheme
347334

335+
# Oracle Storage Configuration
336+
#
337+
OCI_ENDPOINT=https://objectstorage.us-ashburn-1.oraclecloud.com
338+
OCI_BUCKET_NAME=your-bucket-name
339+
OCI_ACCESS_KEY=your-access-key
340+
OCI_SECRET_KEY=your-secret-key
341+
OCI_REGION=us-ashburn-1
342+
348343
# Huawei OBS Configuration
349-
# The name of the Huawei OBS bucket to use for storing files.
344+
#
350345
HUAWEI_OBS_BUCKET_NAME=your-bucket-name
351-
# The secret key to use for authenticating with the Huawei OBS service.
352346
HUAWEI_OBS_SECRET_KEY=your-secret-key
353-
# The access key to use for authenticating with the Huawei OBS service.
354347
HUAWEI_OBS_ACCESS_KEY=your-access-key
355-
# The server url of the HUAWEI OBS service.
356348
HUAWEI_OBS_SERVER=your-server-url
357349

358350
# Volcengine TOS Configuration
359-
# The name of the Volcengine TOS bucket to use for storing files.
351+
#
360352
VOLCENGINE_TOS_BUCKET_NAME=your-bucket-name
361-
# The secret key to use for authenticating with the Volcengine TOS service.
362353
VOLCENGINE_TOS_SECRET_KEY=your-secret-key
363-
# The access key to use for authenticating with the Volcengine TOS service.
364354
VOLCENGINE_TOS_ACCESS_KEY=your-access-key
365-
# The endpoint of the Volcengine TOS service.
366355
VOLCENGINE_TOS_ENDPOINT=your-server-url
367-
# The region of the Volcengine TOS service.
368356
VOLCENGINE_TOS_REGION=your-region
369357

370358
# Baidu OBS Storage Configuration
371-
# The name of the Baidu OBS bucket to use for storing files.
359+
#
372360
BAIDU_OBS_BUCKET_NAME=your-bucket-name
373-
# The secret key to use for authenticating with the Baidu OBS service.
374361
BAIDU_OBS_SECRET_KEY=your-secret-key
375-
# The access key to use for authenticating with the Baidu OBS service.
376362
BAIDU_OBS_ACCESS_KEY=your-access-key
377-
# The endpoint of the Baidu OBS service.
378363
BAIDU_OBS_ENDPOINT=your-server-url
379364

380365
# Supabase Storage Configuration
381-
# The name of the Supabase bucket to use for storing files.
366+
#
382367
SUPABASE_BUCKET_NAME=your-bucket-name
383-
# The api key to use for authenticating with the Supabase service.
384368
SUPABASE_API_KEY=your-access-key
385-
# The project endpoint url of the Supabase service.
386369
SUPABASE_URL=your-server-url
387370

388371
# ------------------------------
@@ -395,28 +378,20 @@ VECTOR_STORE=weaviate
395378

396379
# The Weaviate endpoint URL. Only available when VECTOR_STORE is `weaviate`.
397380
WEAVIATE_ENDPOINT=http://weaviate:8080
398-
# The Weaviate API key.
399381
WEAVIATE_API_KEY=WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih
400382

401383
# The Qdrant endpoint URL. Only available when VECTOR_STORE is `qdrant`.
402384
QDRANT_URL=http://qdrant:6333
403-
# The Qdrant API key.
404385
QDRANT_API_KEY=difyai123456
405-
# The Qdrant client timeout setting.
406386
QDRANT_CLIENT_TIMEOUT=20
407-
# The Qdrant client enable gRPC mode.
408387
QDRANT_GRPC_ENABLED=false
409-
# The Qdrant server gRPC mode PORT.
410388
QDRANT_GRPC_PORT=6334
411389

412390
# Milvus configuration Only available when VECTOR_STORE is `milvus`.
413391
# The milvus uri.
414392
MILVUS_URI=http://127.0.0.1:19530
415-
# The milvus token.
416393
MILVUS_TOKEN=
417-
# The milvus username.
418394
MILVUS_USER=root
419-
# The milvus password.
420395
MILVUS_PASSWORD=Milvus
421396

422397
# MyScale configuration, only available when VECTOR_STORE is `myscale`
@@ -470,8 +445,8 @@ ANALYTICDB_MAX_CONNECTION=5
470445
# TiDB vector configurations, only available when VECTOR_STORE is `tidb`
471446
TIDB_VECTOR_HOST=tidb
472447
TIDB_VECTOR_PORT=4000
473-
TIDB_VECTOR_USER=xxx.root
474-
TIDB_VECTOR_PASSWORD=xxxxxx
448+
TIDB_VECTOR_USER=
449+
TIDB_VECTOR_PASSWORD=
475450
TIDB_VECTOR_DATABASE=dify
476451

477452
# Tidb on qdrant configuration, only available when VECTOR_STORE is `tidb_on_qdrant`
@@ -494,7 +469,7 @@ CHROMA_PORT=8000
494469
CHROMA_TENANT=default_tenant
495470
CHROMA_DATABASE=default_database
496471
CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthClientProvider
497-
CHROMA_AUTH_CREDENTIALS=xxxxxx
472+
CHROMA_AUTH_CREDENTIALS=
498473

499474
# Oracle configuration, only available when VECTOR_STORE is `oracle`
500475
ORACLE_HOST=oracle
@@ -531,6 +506,7 @@ ELASTICSEARCH_HOST=0.0.0.0
531506
ELASTICSEARCH_PORT=9200
532507
ELASTICSEARCH_USERNAME=elastic
533508
ELASTICSEARCH_PASSWORD=elastic
509+
KIBANA_PORT=5601
534510

535511
# baidu vector configurations, only available when VECTOR_STORE is `baidu`
536512
BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287
@@ -550,20 +526,24 @@ VIKINGDB_SCHEMA=http
550526
VIKINGDB_CONNECTION_TIMEOUT=30
551527
VIKINGDB_SOCKET_TIMEOUT=30
552528

553-
554529
# Lindorm configuration, only available when VECTOR_STORE is `lindorm`
555-
LINDORM_URL=http://ld-***************-proxy-search-pub.lindorm.aliyuncs.com:30070
556-
LINDORM_USERNAME=username
557-
LINDORM_PASSWORD=password
530+
LINDORM_URL=http://lindorm:30070
531+
LINDORM_USERNAME=lindorm
532+
LINDORM_PASSWORD=lindorm
558533

559534
# OceanBase Vector configuration, only available when VECTOR_STORE is `oceanbase`
560535
OCEANBASE_VECTOR_HOST=oceanbase
561536
OCEANBASE_VECTOR_PORT=2881
562537
OCEANBASE_VECTOR_USER=root@test
563538
OCEANBASE_VECTOR_PASSWORD=difyai123456
564539
OCEANBASE_VECTOR_DATABASE=test
540+
OCEANBASE_CLUSTER_NAME=difyai
565541
OCEANBASE_MEMORY_LIMIT=6G
566542

543+
# Upstash Vector configuration, only available when VECTOR_STORE is `upstash`
544+
UPSTASH_VECTOR_URL=https://xxx-vector.upstash.io
545+
UPSTASH_VECTOR_TOKEN=dify
546+
567547
# ------------------------------
568548
# Knowledge Configuration
569549
# ------------------------------
@@ -612,13 +592,10 @@ CODE_GENERATION_MAX_TOKENS=1024
612592
# It is generally recommended to use the more compatible base64 mode.
613593
# If configured as url, you need to configure FILES_URL as an externally accessible address so that the multi-modal model can access the image/video/audio/document.
614594
MULTIMODAL_SEND_FORMAT=base64
615-
616595
# Upload image file size limit, default 10M.
617596
UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
618-
619597
# Upload video file size limit, default 100M.
620598
UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
621-
622599
# Upload audio file size limit, default 50M.
623600
UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
624601

@@ -631,10 +608,8 @@ UPLOAD_AUDIO_FILE_SIZE_LIMIT=50
631608
# all monitoring information is not reported to Sentry.
632609
# If not set, Sentry error reporting will be disabled.
633610
API_SENTRY_DSN=
634-
635611
# API Service The reporting ratio of Sentry events, if it is 0.01, it is 1%.
636612
API_SENTRY_TRACES_SAMPLE_RATE=1.0
637-
638613
# API Service The reporting ratio of Sentry profiles, if it is 0.01, it is 1%.
639614
API_SENTRY_PROFILES_SAMPLE_RATE=1.0
640615

@@ -672,8 +647,10 @@ MAIL_TYPE=resend
672647
MAIL_DEFAULT_SEND_FROM=
673648

674649
# API-Key for the Resend email provider, used when MAIL_TYPE is `resend`.
650+
RESEND_API_URL=https://api.resend.com
675651
RESEND_API_KEY=your-resend-api-key
676652

653+
677654
# SMTP server configuration, used when MAIL_TYPE is `smtp`
678655
SMTP_SERVER=
679656
SMTP_PORT=465
@@ -698,18 +675,19 @@ RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5
698675

699676
# The sandbox service endpoint.
700677
CODE_EXECUTION_ENDPOINT=http://sandbox:8194
678+
CODE_EXECUTION_API_KEY=dify-sandbox
701679
CODE_MAX_NUMBER=9223372036854775807
702680
CODE_MIN_NUMBER=-9223372036854775808
703681
CODE_MAX_DEPTH=5
704682
CODE_MAX_PRECISION=20
705683
CODE_MAX_STRING_LENGTH=80000
706-
TEMPLATE_TRANSFORM_MAX_LENGTH=80000
707684
CODE_MAX_STRING_ARRAY_LENGTH=30
708685
CODE_MAX_OBJECT_ARRAY_LENGTH=30
709686
CODE_MAX_NUMBER_ARRAY_LENGTH=1000
710687
CODE_EXECUTION_CONNECT_TIMEOUT=10
711688
CODE_EXECUTION_READ_TIMEOUT=60
712689
CODE_EXECUTION_WRITE_TIMEOUT=10
690+
TEMPLATE_TRANSFORM_MAX_LENGTH=80000
713691

714692
# Workflow runtime configuration
715693
WORKFLOW_MAX_EXECUTION_STEPS=500
@@ -938,3 +916,7 @@ CREATE_TIDB_SERVICE_JOB_ENABLED=false
938916

939917
# Maximum number of submitted thread count in a ThreadPool for parallel node execution
940918
MAX_SUBMIT_COUNT=100
919+
920+
# Proxy
921+
HTTP_PROXY=
922+
HTTPS_PROXY=

0 commit comments

Comments
 (0)