networks:
  milvus:
    driver: bridge
  opensearch-net:
    driver: bridge
    internal: true
  ssrf_proxy_network:
    driver: bridge
    internal: true
services:
  api:
    container_name: api-dify
    depends_on:
    - db
    - redis
    environment:
      ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
      ALIYUN_OSS_ACCESS_KEY: ${ALIYUN_OSS_ACCESS_KEY:-your-access-key}
      ALIYUN_OSS_AUTH_VERSION: ${ALIYUN_OSS_AUTH_VERSION:-v4}
      ALIYUN_OSS_BUCKET_NAME: ${ALIYUN_OSS_BUCKET_NAME:-your-bucket-name}
      ALIYUN_OSS_ENDPOINT: ${ALIYUN_OSS_ENDPOINT:-https://oss-ap-southeast-1-internal.aliyuncs.com}
      ALIYUN_OSS_PATH: ${ALIYUN_OSS_PATH:-your-path}
      ALIYUN_OSS_REGION: ${ALIYUN_OSS_REGION:-ap-southeast-1}
      ALIYUN_OSS_SECRET_KEY: ${ALIYUN_OSS_SECRET_KEY:-your-secret-key}
      ANALYTICDB_ACCOUNT: ${ANALYTICDB_ACCOUNT:-testaccount}
      ANALYTICDB_HOST: ${ANALYTICDB_HOST:-gp-test.aliyuncs.com}
      ANALYTICDB_INSTANCE_ID: ${ANALYTICDB_INSTANCE_ID:-gp-ab123456}
      ANALYTICDB_KEY_ID: ${ANALYTICDB_KEY_ID:-your-ak}
      ANALYTICDB_KEY_SECRET: ${ANALYTICDB_KEY_SECRET:-your-sk}
      ANALYTICDB_MAX_CONNECTION: ${ANALYTICDB_MAX_CONNECTION:-5}
      ANALYTICDB_MIN_CONNECTION: ${ANALYTICDB_MIN_CONNECTION:-1}
      ANALYTICDB_NAMESPACE: ${ANALYTICDB_NAMESPACE:-dify}
      ANALYTICDB_NAMESPACE_PASSWORD: ${ANALYTICDB_NAMESPACE_PASSWORD:-difypassword}
      ANALYTICDB_PASSWORD: ${ANALYTICDB_PASSWORD:-testpassword}
      ANALYTICDB_PORT: ${ANALYTICDB_PORT:-5432}
      ANALYTICDB_REGION_ID: ${ANALYTICDB_REGION_ID:-cn-hangzhou}
      API_SENTRY_DSN: ${API_SENTRY_DSN:-}
      API_SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
      API_SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
      API_TOOL_DEFAULT_CONNECT_TIMEOUT: ${API_TOOL_DEFAULT_CONNECT_TIMEOUT:-10}
      API_TOOL_DEFAULT_READ_TIMEOUT: ${API_TOOL_DEFAULT_READ_TIMEOUT:-60}
      APP_API_URL: ${APP_API_URL:-}
      APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0}
      APP_MAX_EXECUTION_TIME: ${APP_MAX_EXECUTION_TIME:-1200}
      APP_WEB_URL: ${APP_WEB_URL:-}
      AZURE_BLOB_ACCOUNT_KEY: ${AZURE_BLOB_ACCOUNT_KEY:-difyai}
      AZURE_BLOB_ACCOUNT_NAME: ${AZURE_BLOB_ACCOUNT_NAME:-difyai}
      AZURE_BLOB_ACCOUNT_URL: ${AZURE_BLOB_ACCOUNT_URL:-https://<your_account_name>.blob.core.windows.net}
      AZURE_BLOB_CONTAINER_NAME: ${AZURE_BLOB_CONTAINER_NAME:-difyai-container}
      BAIDU_OBS_ACCESS_KEY: ${BAIDU_OBS_ACCESS_KEY:-your-access-key}
      BAIDU_OBS_BUCKET_NAME: ${BAIDU_OBS_BUCKET_NAME:-your-bucket-name}
      BAIDU_OBS_ENDPOINT: ${BAIDU_OBS_ENDPOINT:-your-server-url}
      BAIDU_OBS_SECRET_KEY: ${BAIDU_OBS_SECRET_KEY:-your-secret-key}
      BAIDU_VECTOR_DB_ACCOUNT: ${BAIDU_VECTOR_DB_ACCOUNT:-root}
      BAIDU_VECTOR_DB_API_KEY: ${BAIDU_VECTOR_DB_API_KEY:-dify}
      BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS: ${BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS:-30000}
      BAIDU_VECTOR_DB_DATABASE: ${BAIDU_VECTOR_DB_DATABASE:-dify}
      BAIDU_VECTOR_DB_ENDPOINT: ${BAIDU_VECTOR_DB_ENDPOINT:-http://127.0.0.1:5287}
      BAIDU_VECTOR_DB_REPLICAS: ${BAIDU_VECTOR_DB_REPLICAS:-3}
      BAIDU_VECTOR_DB_SHARD: ${BAIDU_VECTOR_DB_SHARD:-1}
      BROKER_USE_SSL: ${BROKER_USE_SSL:-false}
      CELERY_AUTO_SCALE: ${CELERY_AUTO_SCALE:-false}
      CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}
      CELERY_MAX_WORKERS: ${CELERY_MAX_WORKERS:-}
      CELERY_MIN_WORKERS: ${CELERY_MIN_WORKERS:-}
      CELERY_SENTINEL_MASTER_NAME: ${CELERY_SENTINEL_MASTER_NAME:-}
      CELERY_SENTINEL_SOCKET_TIMEOUT: ${CELERY_SENTINEL_SOCKET_TIMEOUT:-0.1}
      CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}
      CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-}
      CELERY_WORKER_CLASS: ${CELERY_WORKER_CLASS:-}
      CERTBOT_DOMAIN: ${CERTBOT_DOMAIN:-your_domain.com}
      CERTBOT_EMAIL: ${CERTBOT_EMAIL:-your_email@example.com}
      CERTBOT_OPTIONS: ${CERTBOT_OPTIONS:-}
      CHECK_UPDATE_URL: ${CHECK_UPDATE_URL:-https://updates.dify.ai}
      CHROMA_AUTH_CREDENTIALS: ${CHROMA_AUTH_CREDENTIALS:-}
      CHROMA_AUTH_PROVIDER: ${CHROMA_AUTH_PROVIDER:-chromadb.auth.token_authn.TokenAuthClientProvider}
      CHROMA_DATABASE: ${CHROMA_DATABASE:-default_database}
      CHROMA_HOST: ${CHROMA_HOST:-127.0.0.1}
      CHROMA_IS_PERSISTENT: ${CHROMA_IS_PERSISTENT:-TRUE}
      CHROMA_PORT: ${CHROMA_PORT:-8000}
      CHROMA_SERVER_AUTHN_CREDENTIALS: ${CHROMA_SERVER_AUTHN_CREDENTIALS:-difyai123456}
      CHROMA_SERVER_AUTHN_PROVIDER: ${CHROMA_SERVER_AUTHN_PROVIDER:-chromadb.auth.token_authn.TokenAuthenticationServerProvider}
      CHROMA_TENANT: ${CHROMA_TENANT:-default_tenant}
      CODE_EXECUTION_API_KEY: ${CODE_EXECUTION_API_KEY:-dify-sandbox}
      CODE_EXECUTION_CONNECT_TIMEOUT: ${CODE_EXECUTION_CONNECT_TIMEOUT:-10}
      CODE_EXECUTION_ENDPOINT: ${CODE_EXECUTION_ENDPOINT:-http://sandbox:8194}
      CODE_EXECUTION_READ_TIMEOUT: ${CODE_EXECUTION_READ_TIMEOUT:-60}
      CODE_EXECUTION_WRITE_TIMEOUT: ${CODE_EXECUTION_WRITE_TIMEOUT:-10}
      CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024}
      CODE_MAX_DEPTH: ${CODE_MAX_DEPTH:-5}
      CODE_MAX_NUMBER: ${CODE_MAX_NUMBER:-9223372036854775807}
      CODE_MAX_NUMBER_ARRAY_LENGTH: ${CODE_MAX_NUMBER_ARRAY_LENGTH:-1000}
      CODE_MAX_OBJECT_ARRAY_LENGTH: ${CODE_MAX_OBJECT_ARRAY_LENGTH:-30}
      CODE_MAX_PRECISION: ${CODE_MAX_PRECISION:-20}
      CODE_MAX_STRING_ARRAY_LENGTH: ${CODE_MAX_STRING_ARRAY_LENGTH:-30}
      CODE_MAX_STRING_LENGTH: ${CODE_MAX_STRING_LENGTH:-80000}
      CODE_MIN_NUMBER: ${CODE_MIN_NUMBER:--9223372036854775808}
      CONSOLE_API_URL: ${CONSOLE_API_URL:-}
      CONSOLE_CORS_ALLOW_ORIGINS: ${CONSOLE_CORS_ALLOW_ORIGINS:-*}
      CONSOLE_WEB_URL: ${CONSOLE_WEB_URL:-}
      COUCHBASE_BUCKET_NAME: ${COUCHBASE_BUCKET_NAME:-Embeddings}
      COUCHBASE_CONNECTION_STRING: ${COUCHBASE_CONNECTION_STRING:-couchbase://couchbase-server}
      COUCHBASE_PASSWORD: ${COUCHBASE_PASSWORD:-password}
      COUCHBASE_SCOPE_NAME: ${COUCHBASE_SCOPE_NAME:-_default}
      COUCHBASE_USER: ${COUCHBASE_USER:-Administrator}
      CREATE_TIDB_SERVICE_JOB_ENABLED: ${CREATE_TIDB_SERVICE_JOB_ENABLED:-false}
      CSP_WHITELIST: ${CSP_WHITELIST:-}
      DB_DATABASE: ${DB_DATABASE:-dify}
      DB_HOST: ${DB_HOST:-db}
      DB_PASSWORD: ${DB_PASSWORD:-difyai123456}
      DB_PLUGIN_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
      DB_PORT: ${DB_PORT:-5432}
      DB_USERNAME: ${DB_USERNAME:-postgres}
      DEBUG: ${DEBUG:-false}
      DEPLOY_ENV: ${DEPLOY_ENV:-PRODUCTION}
      DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0}
      DIFY_PORT: ${DIFY_PORT:-5001}
      ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-0.0.0.0}
      ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
      ELASTICSEARCH_PORT: ${ELASTICSEARCH_PORT:-9200}
      ELASTICSEARCH_USERNAME: ${ELASTICSEARCH_USERNAME:-elastic}
      ENDPOINT_URL_TEMPLATE: ${ENDPOINT_URL_TEMPLATE:-http://localhost/e/{hook_id}}
      ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
      ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
      ETCD_ENDPOINTS: ${ETCD_ENDPOINTS:-etcd:2379}
      ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
      ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
      ETL_TYPE: ${ETL_TYPE:-dify}
      EXPOSE_NGINX_PORT: ${PANEL_APP_PORT_HTTP:-8080}
      EXPOSE_NGINX_SSL_PORT: ${PANEL_APP_PORT_HTTPS:-8443}
      EXPOSE_PLUGIN_DAEMON_PORT: ${EXPOSE_PLUGIN_DAEMON_PORT:-5002}
      EXPOSE_PLUGIN_DEBUGGING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
      EXPOSE_PLUGIN_DEBUGGING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
      FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300}
      FILES_URL: ${FILES_URL:-}
      FLASK_DEBUG: ${FLASK_DEBUG:-false}
      FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
      GOOGLE_STORAGE_BUCKET_NAME: ${GOOGLE_STORAGE_BUCKET_NAME:-your-bucket-name}
      GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: ${GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64:-}
      GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-360}
      HTTP_REQUEST_NODE_MAX_BINARY_SIZE: ${HTTP_REQUEST_NODE_MAX_BINARY_SIZE:-10485760}
      HTTP_REQUEST_NODE_MAX_TEXT_SIZE: ${HTTP_REQUEST_NODE_MAX_TEXT_SIZE:-1048576}
      HUAWEI_OBS_ACCESS_KEY: ${HUAWEI_OBS_ACCESS_KEY:-your-access-key}
      HUAWEI_OBS_BUCKET_NAME: ${HUAWEI_OBS_BUCKET_NAME:-your-bucket-name}
      HUAWEI_OBS_SECRET_KEY: ${HUAWEI_OBS_SECRET_KEY:-your-secret-key}
      HUAWEI_OBS_SERVER: ${HUAWEI_OBS_SERVER:-your-server-url}
      INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-4000}
      INIT_PASSWORD: ${INIT_PASSWORD:-}
      INNER_API_KEY_FOR_PLUGIN: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      INVITE_EXPIRY_HOURS: ${INVITE_EXPIRY_HOURS:-72}
      KIBANA_PORT: ${KIBANA_PORT:-5601}
      LINDORM_PASSWORD: ${LINDORM_PASSWORD:-lindorm}
      LINDORM_URL: ${LINDORM_URL:-http://lindorm:30070}
      LINDORM_USERNAME: ${LINDORM_USERNAME:-lindorm}
      LOG_DATEFORMAT: ${LOG_DATEFORMAT:-%Y-%m-%d %H:%M:%S}
      LOG_FILE: ${LOG_FILE:-/app/logs/server.log}
      LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5}
      LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20}
      LOG_LEVEL: ${LOG_LEVEL:-INFO}
      LOG_TZ: ${LOG_TZ:-UTC}
      MAIL_DEFAULT_SEND_FROM: ${MAIL_DEFAULT_SEND_FROM:-}
      MAIL_TYPE: ${MAIL_TYPE:-resend}
      MARKETPLACE_API_URL: ${MARKETPLACE_API_URL:-https://marketplace.dify.ai}
      MARKETPLACE_ENABLED: ${MARKETPLACE_ENABLED:-true}
      MAX_SUBMIT_COUNT: ${MAX_SUBMIT_COUNT:-100}
      MAX_VARIABLE_SIZE: ${MAX_VARIABLE_SIZE:-204800}
      MIGRATION_ENABLED: ${MIGRATION_ENABLED:-true}
      MILVUS_AUTHORIZATION_ENABLED: ${MILVUS_AUTHORIZATION_ENABLED:-true}
      MILVUS_ENABLE_HYBRID_SEARCH: ${MILVUS_ENABLE_HYBRID_SEARCH:-False}
      MILVUS_PASSWORD: ${MILVUS_PASSWORD:-Milvus}
      MILVUS_TOKEN: ${MILVUS_TOKEN:-}
      MILVUS_URI: ${MILVUS_URI:-http://127.0.0.1:19530}
      MILVUS_USER: ${MILVUS_USER:-root}
      MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
      MINIO_ADDRESS: ${MINIO_ADDRESS:-minio:9000}
      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
      MODE: api
      MULTIMODAL_SEND_FORMAT: ${MULTIMODAL_SEND_FORMAT:-base64}
      MYSCALE_DATABASE: ${MYSCALE_DATABASE:-dify}
      MYSCALE_FTS_PARAMS: ${MYSCALE_FTS_PARAMS:-}
      MYSCALE_HOST: ${MYSCALE_HOST:-myscale}
      MYSCALE_PASSWORD: ${MYSCALE_PASSWORD:-}
      MYSCALE_PORT: ${MYSCALE_PORT:-8123}
      MYSCALE_USER: ${MYSCALE_USER:-default}
      NGINX_CLIENT_MAX_BODY_SIZE: ${NGINX_CLIENT_MAX_BODY_SIZE:-15M}
      NGINX_ENABLE_CERTBOT_CHALLENGE: ${NGINX_ENABLE_CERTBOT_CHALLENGE:-false}
      NGINX_HTTPS_ENABLED: ${NGINX_HTTPS_ENABLED:-false}
      NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT:-65}
      NGINX_PORT: ${NGINX_PORT:-80}
      NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT:-3600s}
      NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT:-3600s}
      NGINX_SERVER_NAME: ${NGINX_SERVER_NAME:-_}
      NGINX_SSL_CERT_FILENAME: ${NGINX_SSL_CERT_FILENAME:-dify.crt}
      NGINX_SSL_CERT_KEY_FILENAME: ${NGINX_SSL_CERT_KEY_FILENAME:-dify.key}
      NGINX_SSL_PORT: ${NGINX_SSL_PORT:-443}
      NGINX_SSL_PROTOCOLS: ${NGINX_SSL_PROTOCOLS:-TLSv1.1 TLSv1.2 TLSv1.3}
      NGINX_WORKER_PROCESSES: ${NGINX_WORKER_PROCESSES:-auto}
      NOTION_CLIENT_ID: ${NOTION_CLIENT_ID:-}
      NOTION_CLIENT_SECRET: ${NOTION_CLIENT_SECRET:-}
      NOTION_INTEGRATION_TYPE: ${NOTION_INTEGRATION_TYPE:-public}
      NOTION_INTERNAL_SECRET: ${NOTION_INTERNAL_SECRET:-}
      OCEANBASE_CLUSTER_NAME: ${OCEANBASE_CLUSTER_NAME:-difyai}
      OCEANBASE_MEMORY_LIMIT: ${OCEANBASE_MEMORY_LIMIT:-6G}
      OCEANBASE_VECTOR_DATABASE: ${OCEANBASE_VECTOR_DATABASE:-test}
      OCEANBASE_VECTOR_HOST: ${OCEANBASE_VECTOR_HOST:-oceanbase}
      OCEANBASE_VECTOR_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
      OCEANBASE_VECTOR_PORT: ${OCEANBASE_VECTOR_PORT:-2881}
      OCEANBASE_VECTOR_USER: ${OCEANBASE_VECTOR_USER:-root@test}
      OCI_ACCESS_KEY: ${OCI_ACCESS_KEY:-your-access-key}
      OCI_BUCKET_NAME: ${OCI_BUCKET_NAME:-your-bucket-name}
      OCI_ENDPOINT: ${OCI_ENDPOINT:-https://objectstorage.us-ashburn-1.oraclecloud.com}
      OCI_REGION: ${OCI_REGION:-us-ashburn-1}
      OCI_SECRET_KEY: ${OCI_SECRET_KEY:-your-secret-key}
      OPENAI_API_BASE: ${OPENAI_API_BASE:-https://api.openai.com/v1}
      OPENDAL_FS_ROOT: ${OPENDAL_FS_ROOT:-storage}
      OPENDAL_SCHEME: ${OPENDAL_SCHEME:-fs}
      OPENSEARCH_BOOTSTRAP_MEMORY_LOCK: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
      OPENSEARCH_DISCOVERY_TYPE: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
      OPENSEARCH_HOST: ${OPENSEARCH_HOST:-opensearch}
      OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
      OPENSEARCH_JAVA_OPTS_MAX: ${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
      OPENSEARCH_JAVA_OPTS_MIN: ${OPENSEARCH_JAVA_OPTS_MIN:-512m}
      OPENSEARCH_MEMLOCK_HARD: ${OPENSEARCH_MEMLOCK_HARD:--1}
      OPENSEARCH_MEMLOCK_SOFT: ${OPENSEARCH_MEMLOCK_SOFT:--1}
      OPENSEARCH_NOFILE_HARD: ${OPENSEARCH_NOFILE_HARD:-65536}
      OPENSEARCH_NOFILE_SOFT: ${OPENSEARCH_NOFILE_SOFT:-65536}
      OPENSEARCH_PASSWORD: ${OPENSEARCH_PASSWORD:-admin}
      OPENSEARCH_PORT: ${OPENSEARCH_PORT:-9200}
      OPENSEARCH_SECURE: ${OPENSEARCH_SECURE:-true}
      OPENSEARCH_USER: ${OPENSEARCH_USER:-admin}
      ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
      ORACLE_DATABASE: ${ORACLE_DATABASE:-FREEPDB1}
      ORACLE_HOST: ${ORACLE_HOST:-oracle}
      ORACLE_PASSWORD: ${ORACLE_PASSWORD:-dify}
      ORACLE_PORT: ${ORACLE_PORT:-1521}
      ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
      ORACLE_USER: ${ORACLE_USER:-dify}
      PGDATA: ${PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGUSER:-${DB_USERNAME}}
      PGVECTOR_DATABASE: ${PGVECTOR_DATABASE:-dify}
      PGVECTOR_HOST: ${PGVECTOR_HOST:-pgvector}
      PGVECTOR_MAX_CONNECTION: ${PGVECTOR_MAX_CONNECTION:-5}
      PGVECTOR_MIN_CONNECTION: ${PGVECTOR_MIN_CONNECTION:-1}
      PGVECTOR_PASSWORD: ${PGVECTOR_PASSWORD:-difyai123456}
      PGVECTOR_PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
      PGVECTOR_PGUSER: ${PGVECTOR_PGUSER:-postgres}
      PGVECTOR_PORT: ${PGVECTOR_PORT:-5432}
      PGVECTOR_POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
      PGVECTOR_POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
      PGVECTOR_USER: ${PGVECTOR_USER:-postgres}
      PGVECTO_RS_DATABASE: ${PGVECTO_RS_DATABASE:-dify}
      PGVECTO_RS_HOST: ${PGVECTO_RS_HOST:-pgvecto-rs}
      PGVECTO_RS_PASSWORD: ${PGVECTO_RS_PASSWORD:-difyai123456}
      PGVECTO_RS_PORT: ${PGVECTO_RS_PORT:-5432}
      PGVECTO_RS_USER: ${PGVECTO_RS_USER:-postgres}
      PLUGIN_DAEMON_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
      PLUGIN_DAEMON_PORT: ${PLUGIN_DAEMON_PORT:-5002}
      PLUGIN_DAEMON_URL: ${PLUGIN_DAEMON_URL:-http://plugin_daemon:5002}
      PLUGIN_DEBUGGING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0}
      PLUGIN_DEBUGGING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003}
      PLUGIN_DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      PLUGIN_DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
      PLUGIN_MAX_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
      PLUGIN_PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
      POSITION_PROVIDER_EXCLUDES: ${POSITION_PROVIDER_EXCLUDES:-}
      POSITION_PROVIDER_INCLUDES: ${POSITION_PROVIDER_INCLUDES:-}
      POSITION_PROVIDER_PINS: ${POSITION_PROVIDER_PINS:-}
      POSITION_TOOL_EXCLUDES: ${POSITION_TOOL_EXCLUDES:-}
      POSITION_TOOL_INCLUDES: ${POSITION_TOOL_INCLUDES:-}
      POSITION_TOOL_PINS: ${POSITION_TOOL_PINS:-}
      POSTGRES_DB: ${POSTGRES_DB:-${DB_DATABASE}}
      POSTGRES_EFFECTIVE_CACHE_SIZE: ${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}
      POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
      POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-${DB_PASSWORD}}
      POSTGRES_SHARED_BUFFERS: ${POSTGRES_SHARED_BUFFERS:-128MB}
      POSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB}
      PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512}
      QDRANT_API_KEY: ${QDRANT_API_KEY:-difyai123456}
      QDRANT_CLIENT_TIMEOUT: ${QDRANT_CLIENT_TIMEOUT:-20}
      QDRANT_GRPC_ENABLED: ${QDRANT_GRPC_ENABLED:-false}
      QDRANT_GRPC_PORT: ${QDRANT_GRPC_PORT:-6334}
      QDRANT_URL: ${QDRANT_URL:-http://qdrant:6333}
      REDIS_CLUSTERS: ${REDIS_CLUSTERS:-}
      REDIS_CLUSTERS_PASSWORD: ${REDIS_CLUSTERS_PASSWORD:-}
      REDIS_DB: ${REDIS_DB:-0}
      REDIS_HOST: ${REDIS_HOST:-redis}
      REDIS_PASSWORD: ${REDIS_PASSWORD:-difyai123456}
      REDIS_PORT: ${REDIS_PORT:-6379}
      REDIS_SENTINELS: ${REDIS_SENTINELS:-}
      REDIS_SENTINEL_PASSWORD: ${REDIS_SENTINEL_PASSWORD:-}
      REDIS_SENTINEL_SERVICE_NAME: ${REDIS_SENTINEL_SERVICE_NAME:-}
      REDIS_SENTINEL_SOCKET_TIMEOUT: ${REDIS_SENTINEL_SOCKET_TIMEOUT:-0.1}
      REDIS_SENTINEL_USERNAME: ${REDIS_SENTINEL_USERNAME:-}
      REDIS_USERNAME: ${REDIS_USERNAME:-}
      REDIS_USE_CLUSTERS: ${REDIS_USE_CLUSTERS:-false}
      REDIS_USE_SENTINEL: ${REDIS_USE_SENTINEL:-false}
      REDIS_USE_SSL: ${REDIS_USE_SSL:-false}
      REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS:-30}
      RELYT_DATABASE: ${RELYT_DATABASE:-postgres}
      RELYT_HOST: ${RELYT_HOST:-db}
      RELYT_PASSWORD: ${RELYT_PASSWORD:-difyai123456}
      RELYT_PORT: ${RELYT_PORT:-5432}
      RELYT_USER: ${RELYT_USER:-postgres}
      RESEND_API_KEY: ${RESEND_API_KEY:-your-resend-api-key}
      RESEND_API_URL: ${RESEND_API_URL:-https://api.resend.com}
      RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: ${RESET_PASSWORD_TOKEN_EXPIRY_MINUTES:-5}
      S3_ACCESS_KEY: ${S3_ACCESS_KEY:-}
      S3_BUCKET_NAME: ${S3_BUCKET_NAME:-difyai}
      S3_ENDPOINT: ${S3_ENDPOINT:-}
      S3_REGION: ${S3_REGION:-us-east-1}
      S3_SECRET_KEY: ${S3_SECRET_KEY:-}
      S3_USE_AWS_MANAGED_IAM: ${S3_USE_AWS_MANAGED_IAM:-false}
      SANDBOX_API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
      SANDBOX_ENABLE_NETWORK: ${SANDBOX_ENABLE_NETWORK:-true}
      SANDBOX_GIN_MODE: ${SANDBOX_GIN_MODE:-release}
      SANDBOX_HTTPS_PROXY: ${SANDBOX_HTTPS_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_HTTP_PROXY: ${SANDBOX_HTTP_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_PORT: ${SANDBOX_PORT:-8194}
      SANDBOX_WORKER_TIMEOUT: ${SANDBOX_WORKER_TIMEOUT:-15}
      SCARF_NO_ANALYTICS: ${SCARF_NO_ANALYTICS:-true}
      SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U}
      SENTRY_DSN: ${API_SENTRY_DSN:-}
      SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
      SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
      SERVER_WORKER_AMOUNT: ${SERVER_WORKER_AMOUNT:-1}
      SERVER_WORKER_CLASS: ${SERVER_WORKER_CLASS:-gevent}
      SERVER_WORKER_CONNECTIONS: ${SERVER_WORKER_CONNECTIONS:-10}
      SERVICE_API_URL: ${SERVICE_API_URL:-}
      SMTP_OPPORTUNISTIC_TLS: ${SMTP_OPPORTUNISTIC_TLS:-false}
      SMTP_PASSWORD: ${SMTP_PASSWORD:-}
      SMTP_PORT: ${SMTP_PORT:-465}
      SMTP_SERVER: ${SMTP_SERVER:-}
      SMTP_USERNAME: ${SMTP_USERNAME:-}
      SMTP_USE_TLS: ${SMTP_USE_TLS:-true}
      SQLALCHEMY_ECHO: ${SQLALCHEMY_ECHO:-false}
      SQLALCHEMY_POOL_RECYCLE: ${SQLALCHEMY_POOL_RECYCLE:-3600}
      SQLALCHEMY_POOL_SIZE: ${SQLALCHEMY_POOL_SIZE:-30}
      SSRF_COREDUMP_DIR: ${SSRF_COREDUMP_DIR:-/var/spool/squid}
      SSRF_DEFAULT_CONNECT_TIME_OUT: ${SSRF_DEFAULT_CONNECT_TIME_OUT:-5}
      SSRF_DEFAULT_READ_TIME_OUT: ${SSRF_DEFAULT_READ_TIME_OUT:-5}
      SSRF_DEFAULT_TIME_OUT: ${SSRF_DEFAULT_TIME_OUT:-5}
      SSRF_DEFAULT_WRITE_TIME_OUT: ${SSRF_DEFAULT_WRITE_TIME_OUT:-5}
      SSRF_HTTP_PORT: ${SSRF_HTTP_PORT:-3128}
      SSRF_PROXY_HTTPS_URL: ${SSRF_PROXY_HTTPS_URL:-http://ssrf_proxy:3128}
      SSRF_PROXY_HTTP_URL: ${SSRF_PROXY_HTTP_URL:-http://ssrf_proxy:3128}
      SSRF_REVERSE_PROXY_PORT: ${SSRF_REVERSE_PROXY_PORT:-8194}
      SSRF_SANDBOX_HOST: ${SSRF_SANDBOX_HOST:-sandbox}
      STORAGE_TYPE: ${STORAGE_TYPE:-opendal}
      SUPABASE_API_KEY: ${SUPABASE_API_KEY:-your-access-key}
      SUPABASE_BUCKET_NAME: ${SUPABASE_BUCKET_NAME:-your-bucket-name}
      SUPABASE_URL: ${SUPABASE_URL:-your-server-url}
      TEMPLATE_TRANSFORM_MAX_LENGTH: ${TEMPLATE_TRANSFORM_MAX_LENGTH:-80000}
      TENCENT_COS_BUCKET_NAME: ${TENCENT_COS_BUCKET_NAME:-your-bucket-name}
      TENCENT_COS_REGION: ${TENCENT_COS_REGION:-your-region}
      TENCENT_COS_SCHEME: ${TENCENT_COS_SCHEME:-your-scheme}
      TENCENT_COS_SECRET_ID: ${TENCENT_COS_SECRET_ID:-your-secret-id}
      TENCENT_COS_SECRET_KEY: ${TENCENT_COS_SECRET_KEY:-your-secret-key}
      TENCENT_VECTOR_DB_API_KEY: ${TENCENT_VECTOR_DB_API_KEY:-dify}
      TENCENT_VECTOR_DB_DATABASE: ${TENCENT_VECTOR_DB_DATABASE:-dify}
      TENCENT_VECTOR_DB_REPLICAS: ${TENCENT_VECTOR_DB_REPLICAS:-2}
      TENCENT_VECTOR_DB_SHARD: ${TENCENT_VECTOR_DB_SHARD:-1}
      TENCENT_VECTOR_DB_TIMEOUT: ${TENCENT_VECTOR_DB_TIMEOUT:-30}
      TENCENT_VECTOR_DB_URL: ${TENCENT_VECTOR_DB_URL:-http://127.0.0.1}
      TENCENT_VECTOR_DB_USERNAME: ${TENCENT_VECTOR_DB_USERNAME:-dify}
      TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000}
      TIDB_API_URL: ${TIDB_API_URL:-http://127.0.0.1}
      TIDB_IAM_API_URL: ${TIDB_IAM_API_URL:-http://127.0.0.1}
      TIDB_ON_QDRANT_API_KEY: ${TIDB_ON_QDRANT_API_KEY:-dify}
      TIDB_ON_QDRANT_CLIENT_TIMEOUT: ${TIDB_ON_QDRANT_CLIENT_TIMEOUT:-20}
      TIDB_ON_QDRANT_GRPC_ENABLED: ${TIDB_ON_QDRANT_GRPC_ENABLED:-false}
      TIDB_ON_QDRANT_GRPC_PORT: ${TIDB_ON_QDRANT_GRPC_PORT:-6334}
      TIDB_ON_QDRANT_URL: ${TIDB_ON_QDRANT_URL:-http://127.0.0.1}
      TIDB_PRIVATE_KEY: ${TIDB_PRIVATE_KEY:-dify}
      TIDB_PROJECT_ID: ${TIDB_PROJECT_ID:-dify}
      TIDB_PUBLIC_KEY: ${TIDB_PUBLIC_KEY:-dify}
      TIDB_REGION: ${TIDB_REGION:-regions/aws-us-east-1}
      TIDB_SPEND_LIMIT: ${TIDB_SPEND_LIMIT:-100}
      TIDB_VECTOR_DATABASE: ${TIDB_VECTOR_DATABASE:-dify}
      TIDB_VECTOR_HOST: ${TIDB_VECTOR_HOST:-tidb}
      TIDB_VECTOR_PASSWORD: ${TIDB_VECTOR_PASSWORD:-}
      TIDB_VECTOR_PORT: ${TIDB_VECTOR_PORT:-4000}
      TIDB_VECTOR_USER: ${TIDB_VECTOR_USER:-}
      TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-10}
      UNSTRUCTURED_API_KEY: ${UNSTRUCTURED_API_KEY:-}
      UNSTRUCTURED_API_URL: ${UNSTRUCTURED_API_URL:-}
      UPLOAD_AUDIO_FILE_SIZE_LIMIT: ${UPLOAD_AUDIO_FILE_SIZE_LIMIT:-50}
      UPLOAD_FILE_BATCH_LIMIT: ${UPLOAD_FILE_BATCH_LIMIT:-5}
      UPLOAD_FILE_SIZE_LIMIT: ${UPLOAD_FILE_SIZE_LIMIT:-15}
      UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10}
      UPLOAD_VIDEO_FILE_SIZE_LIMIT: ${UPLOAD_VIDEO_FILE_SIZE_LIMIT:-100}
      UPSTASH_VECTOR_TOKEN: ${UPSTASH_VECTOR_TOKEN:-dify}
      UPSTASH_VECTOR_URL: ${UPSTASH_VECTOR_URL:-https://xxx-vector.upstash.io}
      VECTOR_STORE: ${VECTOR_STORE:-weaviate}
      VIKINGDB_ACCESS_KEY: ${VIKINGDB_ACCESS_KEY:-your-ak}
      VIKINGDB_CONNECTION_TIMEOUT: ${VIKINGDB_CONNECTION_TIMEOUT:-30}
      VIKINGDB_HOST: ${VIKINGDB_HOST:-api-vikingdb.xxx.volces.com}
      VIKINGDB_REGION: ${VIKINGDB_REGION:-cn-shanghai}
      VIKINGDB_SCHEMA: ${VIKINGDB_SCHEMA:-http}
      VIKINGDB_SECRET_KEY: ${VIKINGDB_SECRET_KEY:-your-sk}
      VIKINGDB_SOCKET_TIMEOUT: ${VIKINGDB_SOCKET_TIMEOUT:-30}
      VOLCENGINE_TOS_ACCESS_KEY: ${VOLCENGINE_TOS_ACCESS_KEY:-your-access-key}
      VOLCENGINE_TOS_BUCKET_NAME: ${VOLCENGINE_TOS_BUCKET_NAME:-your-bucket-name}
      VOLCENGINE_TOS_ENDPOINT: ${VOLCENGINE_TOS_ENDPOINT:-your-server-url}
      VOLCENGINE_TOS_REGION: ${VOLCENGINE_TOS_REGION:-your-region}
      VOLCENGINE_TOS_SECRET_KEY: ${VOLCENGINE_TOS_SECRET_KEY:-your-secret-key}
      WEAVIATE_API_KEY: ${WEAVIATE_API_KEY:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ${WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS: ${WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_APIKEY_ENABLED: ${WEAVIATE_AUTHENTICATION_APIKEY_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_USERS: ${WEAVIATE_AUTHENTICATION_APIKEY_USERS:-hello@dify.ai}
      WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED: ${WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED:-true}
      WEAVIATE_AUTHORIZATION_ADMINLIST_USERS: ${WEAVIATE_AUTHORIZATION_ADMINLIST_USERS:-hello@dify.ai}
      WEAVIATE_CLUSTER_HOSTNAME: ${WEAVIATE_CLUSTER_HOSTNAME:-node1}
      WEAVIATE_DEFAULT_VECTORIZER_MODULE: ${WEAVIATE_DEFAULT_VECTORIZER_MODULE:-none}
      WEAVIATE_ENDPOINT: ${WEAVIATE_ENDPOINT:-http://weaviate:8080}
      WEAVIATE_PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
      WEAVIATE_QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}
      WEB_API_CORS_ALLOW_ORIGINS: ${WEB_API_CORS_ALLOW_ORIGINS:-*}
      WEB_SENTRY_DSN: ${WEB_SENTRY_DSN:-}
      WORKFLOW_CALL_MAX_DEPTH: ${WORKFLOW_CALL_MAX_DEPTH:-5}
      WORKFLOW_FILE_UPLOAD_LIMIT: ${WORKFLOW_FILE_UPLOAD_LIMIT:-10}
      WORKFLOW_MAX_EXECUTION_STEPS: ${WORKFLOW_MAX_EXECUTION_STEPS:-500}
      WORKFLOW_MAX_EXECUTION_TIME: ${WORKFLOW_MAX_EXECUTION_TIME:-1200}
      WORKFLOW_PARALLEL_DEPTH_LIMIT: ${WORKFLOW_PARALLEL_DEPTH_LIMIT:-3}
    image: langgenius/dify-api:1.0.0
    networks:
    - ssrf_proxy_network
    - default
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/app/storage:/app/api/storage
  certbot:
    command:
    - tail
    - -f
    - /dev/null
    container_name: certbot-dify
    entrypoint:
    - /docker-entrypoint.sh
    environment:
    - CERTBOT_EMAIL=${CERTBOT_EMAIL}
    - CERTBOT_DOMAIN=${CERTBOT_DOMAIN}
    - CERTBOT_OPTIONS=${CERTBOT_OPTIONS:-}
    image: certbot/certbot
    profiles:
    - certbot
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/certbot/conf:/etc/letsencrypt
    - ${DIFY_ROOT_PATH}/volumes/certbot/www:/var/www/html
    - ${DIFY_ROOT_PATH}/volumes/certbot/logs:/var/log/letsencrypt
    - ${DIFY_ROOT_PATH}/volumes/certbot/conf/live:/etc/letsencrypt/live
    - ${DIFY_ROOT_PATH}/certbot/update-cert.template.txt:/update-cert.template.txt
    - ${DIFY_ROOT_PATH}/certbot/docker-entrypoint.sh:/docker-entrypoint.sh
  chroma:
    container_name: chroma-dify
    environment:
      CHROMA_SERVER_AUTHN_CREDENTIALS: ${CHROMA_SERVER_AUTHN_CREDENTIALS:-difyai123456}
      CHROMA_SERVER_AUTHN_PROVIDER: ${CHROMA_SERVER_AUTHN_PROVIDER:-chromadb.auth.token_authn.TokenAuthenticationServerProvider}
      IS_PERSISTENT: ${CHROMA_IS_PERSISTENT:-TRUE}
    image: ghcr.io/chroma-core/chroma:0.5.20
    profiles:
    - chroma
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/chroma:/chroma/chroma
  couchbase-server:
    build: ./conf/couchbase-server
    command: sh -c "/opt/couchbase/init/init-cbserver.sh"
    container_name: couchbase-server
    entrypoint:
    - ''
    environment:
    - CLUSTER_NAME=dify_search
    - COUCHBASE_ADMINISTRATOR_USERNAME=${COUCHBASE_USER:-Administrator}
    - COUCHBASE_ADMINISTRATOR_PASSWORD=${COUCHBASE_PASSWORD:-password}
    - COUCHBASE_BUCKET=${COUCHBASE_BUCKET_NAME:-Embeddings}
    - COUCHBASE_BUCKET_RAMSIZE=512
    - COUCHBASE_RAM_SIZE=2048
    - COUCHBASE_EVENTING_RAM_SIZE=512
    - COUCHBASE_INDEX_RAM_SIZE=512
    - COUCHBASE_FTS_RAM_SIZE=1024
    healthcheck:
      interval: 10s
      retries: 10
      start_period: 30s
      test:
      - CMD-SHELL
      - curl -s -f -u Administrator:password http://localhost:8091/pools/default/buckets
        | grep -q '\[{' || exit 1
      timeout: 10s
    hostname: couchbase-server
    profiles:
    - couchbase
    restart: always
    stdin_open: true
    tty: true
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/couchbase/data:/opt/couchbase/var/lib/couchbase/data
    working_dir: /opt/couchbase
  db:
    command: "postgres -c 'max_connections=${POSTGRES_MAX_CONNECTIONS:-100}'\n   \
      \      -c 'shared_buffers=${POSTGRES_SHARED_BUFFERS:-128MB}'\n         -c 'work_mem=${POSTGRES_WORK_MEM:-4MB}'\n\
      \         -c 'maintenance_work_mem=${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}'\n\
      \         -c 'effective_cache_size=${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}'\n"
    container_name: db-dify
    environment:
      PGDATA: ${PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGUSER:-postgres}
      POSTGRES_DB: ${POSTGRES_DB:-dify}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-difyai123456}
    healthcheck:
      interval: 1s
      retries: 30
      test:
      - CMD
      - pg_isready
      timeout: 3s
    image: postgres:15-alpine
    ports:
    - ${EXPOSE_DB_PORT:-5432}:5432
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/db/data:/var/lib/postgresql/data
  elasticsearch:
    container_name: elasticsearch-dify
    deploy:
      resources:
        limits:
          memory: 2g
    entrypoint:
    - sh
    - -c
    - sh /docker-entrypoint-mount.sh
    environment:
      ELASTIC_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
      VECTOR_STORE: ${VECTOR_STORE:-}
      cluster.name: dify-es-cluster
      discovery.type: single-node
      node.name: dify-es0
      xpack.license.self_generated.type: basic
      xpack.security.enabled: 'true'
      xpack.security.enrollment.enabled: 'false'
      xpack.security.http.ssl.enabled: 'false'
    healthcheck:
      interval: 30s
      retries: 50
      test:
      - CMD
      - curl
      - -s
      - http://localhost:9200/_cluster/health?pretty
      timeout: 10s
    image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
    ports:
    - ${ELASTICSEARCH_PORT:-9200}:9200
    profiles:
    - elasticsearch
    - elasticsearch-ja
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/elasticsearch/docker-entrypoint.sh:/docker-entrypoint-mount.sh
    - dify_es01_data:/usr/share/elasticsearch/data
  etcd:
    command: etcd -advertise-client-urls=http://127.0.0.1:2379 -listen-client-urls
      http://0.0.0.0:2379 --data-dir /etcd
    container_name: milvus-etcd-dify
    environment:
      ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
      ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
      ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
      ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
    healthcheck:
      interval: 30s
      retries: 3
      test:
      - CMD
      - etcdctl
      - endpoint
      - health
      timeout: 20s
    image: quay.io/coreos/etcd:v3.5.5
    networks:
    - milvus
    profiles:
    - milvus
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/milvus/etcd:/etcd
  kibana:
    container_name: kibana-dify
    depends_on:
    - elasticsearch
    environment:
      ELASTICSEARCH_HOSTS: http://elasticsearch:9200
      I18N_LOCALE: zh-CN
      NO_PROXY: localhost,127.0.0.1,elasticsearch,kibana
      SERVER_PORT: '5601'
      XPACK_ENCRYPTEDSAVEDOBJECTS_ENCRYPTIONKEY: d1a66dfd-c4d3-4a0a-8290-2abcb83ab3aa
      XPACK_FLEET_ISAIRGAPPED: 'true'
      XPACK_SECURITY_ENABLED: 'true'
      XPACK_SECURITY_ENROLLMENT_ENABLED: 'false'
      XPACK_SECURITY_HTTP_SSL_ENABLED: 'false'
    healthcheck:
      interval: 30s
      retries: 3
      test:
      - CMD-SHELL
      - curl -s http://localhost:5601 >/dev/null || exit 1
      timeout: 10s
    image: docker.elastic.co/kibana/kibana:8.14.3
    ports:
    - ${KIBANA_PORT:-5601}:5601
    profiles:
    - elasticsearch
    restart: always
  milvus-standalone:
    command:
    - milvus
    - run
    - standalone
    container_name: milvus-standalone-dify
    depends_on:
    - etcd
    - minio
    environment:
      ETCD_ENDPOINTS: ${ETCD_ENDPOINTS:-etcd:2379}
      MINIO_ADDRESS: ${MINIO_ADDRESS:-minio:9000}
      common.security.authorizationEnabled: ${MILVUS_AUTHORIZATION_ENABLED:-true}
    healthcheck:
      interval: 30s
      retries: 3
      start_period: 90s
      test:
      - CMD
      - curl
      - -f
      - http://localhost:9091/healthz
      timeout: 20s
    image: milvusdb/milvus:v2.5.0-beta
    networks:
    - milvus
    ports:
    - 19530:19530
    - 9091:9091
    profiles:
    - milvus
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/milvus/milvus:/var/lib/milvus
  minio:
    command: minio server /minio_data --console-address ":9001"
    container_name: milvus-minio-dify
    environment:
      MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
    healthcheck:
      interval: 30s
      retries: 3
      test:
      - CMD
      - curl
      - -f
      - http://localhost:9000/minio/health/live
      timeout: 20s
    image: minio/minio:RELEASE.2023-03-20T20-16-18Z
    networks:
    - milvus
    profiles:
    - milvus
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/milvus/minio:/minio_data
  myscale:
    container_name: myscale-dify
    image: myscale/myscaledb:1.6.4
    ports:
    - ${MYSCALE_PORT:-8123}:${MYSCALE_PORT:-8123}
    profiles:
    - myscale
    restart: always
    tty: true
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/myscale/data:/var/lib/clickhouse
    - ${DIFY_ROOT_PATH}/volumes/myscale/log:/var/log/clickhouse-server
    - ${DIFY_ROOT_PATH}/volumes/myscale/config/users.d/custom_users_config.xml:/etc/clickhouse-server/users.d/custom_users_config.xml
  nginx:
    container_name: nginx-dify
    depends_on:
    - api
    - web
    entrypoint:
    - sh
    - -c
    - "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh\
      \ && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh"
    environment:
      CERTBOT_DOMAIN: ${CERTBOT_DOMAIN:-}
      NGINX_CLIENT_MAX_BODY_SIZE: ${NGINX_CLIENT_MAX_BODY_SIZE:-15M}
      NGINX_ENABLE_CERTBOT_CHALLENGE: ${NGINX_ENABLE_CERTBOT_CHALLENGE:-false}
      NGINX_HTTPS_ENABLED: ${NGINX_HTTPS_ENABLED:-false}
      NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT:-65}
      NGINX_PORT: ${NGINX_PORT:-80}
      NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT:-3600s}
      NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT:-3600s}
      NGINX_SERVER_NAME: ${NGINX_SERVER_NAME:-_}
      NGINX_SSL_CERT_FILENAME: ${NGINX_SSL_CERT_FILENAME:-dify.crt}
      NGINX_SSL_CERT_KEY_FILENAME: ${NGINX_SSL_CERT_KEY_FILENAME:-dify.key}
      NGINX_SSL_PORT: ${NGINX_SSL_PORT:-443}
      NGINX_SSL_PROTOCOLS: ${NGINX_SSL_PROTOCOLS:-TLSv1.1 TLSv1.2 TLSv1.3}
      NGINX_WORKER_PROCESSES: ${NGINX_WORKER_PROCESSES:-auto}
    image: nginx:latest
    ports:
    - ${PANEL_APP_PORT_HTTP:-80}:${NGINX_PORT:-80}
    - ${PANEL_APP_PORT_HTTPS:-443}:${NGINX_SSL_PORT:-443}
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/nginx/nginx.conf.template:/etc/nginx/nginx.conf.template
    - ${DIFY_ROOT_PATH}/nginx/proxy.conf.template:/etc/nginx/proxy.conf.template
    - ${DIFY_ROOT_PATH}/nginx/https.conf.template:/etc/nginx/https.conf.template
    - ${DIFY_ROOT_PATH}/nginx/conf.d:/etc/nginx/conf.d
    - ${DIFY_ROOT_PATH}/nginx/docker-entrypoint.sh:/docker-entrypoint-mount.sh
    - ${DIFY_ROOT_PATH}/nginx/ssl:/etc/ssl
    - ${DIFY_ROOT_PATH}/volumes/certbot/conf/live:/etc/letsencrypt/live
    - ${DIFY_ROOT_PATH}/volumes/certbot/conf:/etc/letsencrypt
    - ${DIFY_ROOT_PATH}/volumes/certbot/www:/var/www/html
  oceanbase:
    container_name: oceanbase-dify
    environment:
      OB_CLUSTER_NAME: ${OCEANBASE_CLUSTER_NAME:-difyai}
      OB_MEMORY_LIMIT: ${OCEANBASE_MEMORY_LIMIT:-6G}
      OB_SERVER_IP: 127.0.0.1
      OB_SYS_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
      OB_TENANT_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
    image: quay.io/oceanbase/oceanbase-ce:4.3.3.0-100000142024101215
    profiles:
    - oceanbase
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/oceanbase/data:/root/ob
    - ${DIFY_ROOT_PATH}/volumes/oceanbase/conf:/root/.obd/cluster
    - ${DIFY_ROOT_PATH}/volumes/oceanbase/init.d:/root/boot/init.d
  opensearch:
    container_name: opensearch-dify
    environment:
      OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
      OPENSEARCH_JAVA_OPTS: -Xms${OPENSEARCH_JAVA_OPTS_MIN:-512m} -Xmx${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
      bootstrap.memory_lock: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
      discovery.type: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
    image: opensearchproject/opensearch:latest
    networks:
    - opensearch-net
    profiles:
    - opensearch
    ulimits:
      memlock:
        hard: ${OPENSEARCH_MEMLOCK_HARD:--1}
        soft: ${OPENSEARCH_MEMLOCK_SOFT:--1}
      nofile:
        hard: ${OPENSEARCH_NOFILE_HARD:-65536}
        soft: ${OPENSEARCH_NOFILE_SOFT:-65536}
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/opensearch/data:/usr/share/opensearch/data
  opensearch-dashboards:
    container_name: opensearch-dashboards-dify
    depends_on:
    - opensearch
    environment:
      OPENSEARCH_HOSTS: '["https://opensearch:9200"]'
    image: opensearchproject/opensearch-dashboards:latest
    networks:
    - opensearch-net
    profiles:
    - opensearch
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/opensearch/opensearch_dashboards.yml:/usr/share/opensearch-dashboards/config/opensearch_dashboards.yml
  oracle:
    container_name: oracle-dify
    environment:
      ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
      ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
    image: container-registry.oracle.com/database/free:latest
    profiles:
    - oracle
    restart: always
    volumes:
    - source: oradata
      target: /opt/oracle/oradata
      type: volume
    - ${DIFY_ROOT_PATH}/startupscripts:/opt/oracle/scripts/startup
  pgvecto-rs:
    container_name: pgvecto-rs-dify
    environment:
      PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGVECTOR_PGUSER:-postgres}
      POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
      POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
    healthcheck:
      interval: 1s
      retries: 30
      test:
      - CMD
      - pg_isready
      timeout: 3s
    image: tensorchord/pgvecto-rs:pg16-v0.3.0
    profiles:
    - pgvecto-rs
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/pgvecto_rs/data:/var/lib/postgresql/data
  pgvector:
    container_name: pgvector-dify
    environment:
      PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGVECTOR_PGUSER:-postgres}
      POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
      POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
    healthcheck:
      interval: 1s
      retries: 30
      test:
      - CMD
      - pg_isready
      timeout: 3s
    image: pgvector/pgvector:pg16
    profiles:
    - pgvector
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/pgvector/data:/var/lib/postgresql/data
  plugin_daemon:
    container_name: plugin_daemon-dify
    environment:
      ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
      ALIYUN_OSS_ACCESS_KEY: ${ALIYUN_OSS_ACCESS_KEY:-your-access-key}
      ALIYUN_OSS_AUTH_VERSION: ${ALIYUN_OSS_AUTH_VERSION:-v4}
      ALIYUN_OSS_BUCKET_NAME: ${ALIYUN_OSS_BUCKET_NAME:-your-bucket-name}
      ALIYUN_OSS_ENDPOINT: ${ALIYUN_OSS_ENDPOINT:-https://oss-ap-southeast-1-internal.aliyuncs.com}
      ALIYUN_OSS_PATH: ${ALIYUN_OSS_PATH:-your-path}
      ALIYUN_OSS_REGION: ${ALIYUN_OSS_REGION:-ap-southeast-1}
      ALIYUN_OSS_SECRET_KEY: ${ALIYUN_OSS_SECRET_KEY:-your-secret-key}
      ANALYTICDB_ACCOUNT: ${ANALYTICDB_ACCOUNT:-testaccount}
      ANALYTICDB_HOST: ${ANALYTICDB_HOST:-gp-test.aliyuncs.com}
      ANALYTICDB_INSTANCE_ID: ${ANALYTICDB_INSTANCE_ID:-gp-ab123456}
      ANALYTICDB_KEY_ID: ${ANALYTICDB_KEY_ID:-your-ak}
      ANALYTICDB_KEY_SECRET: ${ANALYTICDB_KEY_SECRET:-your-sk}
      ANALYTICDB_MAX_CONNECTION: ${ANALYTICDB_MAX_CONNECTION:-5}
      ANALYTICDB_MIN_CONNECTION: ${ANALYTICDB_MIN_CONNECTION:-1}
      ANALYTICDB_NAMESPACE: ${ANALYTICDB_NAMESPACE:-dify}
      ANALYTICDB_NAMESPACE_PASSWORD: ${ANALYTICDB_NAMESPACE_PASSWORD:-difypassword}
      ANALYTICDB_PASSWORD: ${ANALYTICDB_PASSWORD:-testpassword}
      ANALYTICDB_PORT: ${ANALYTICDB_PORT:-5432}
      ANALYTICDB_REGION_ID: ${ANALYTICDB_REGION_ID:-cn-hangzhou}
      API_SENTRY_DSN: ${API_SENTRY_DSN:-}
      API_SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
      API_SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
      API_TOOL_DEFAULT_CONNECT_TIMEOUT: ${API_TOOL_DEFAULT_CONNECT_TIMEOUT:-10}
      API_TOOL_DEFAULT_READ_TIMEOUT: ${API_TOOL_DEFAULT_READ_TIMEOUT:-60}
      APP_API_URL: ${APP_API_URL:-}
      APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0}
      APP_MAX_EXECUTION_TIME: ${APP_MAX_EXECUTION_TIME:-1200}
      APP_WEB_URL: ${APP_WEB_URL:-}
      AZURE_BLOB_ACCOUNT_KEY: ${AZURE_BLOB_ACCOUNT_KEY:-difyai}
      AZURE_BLOB_ACCOUNT_NAME: ${AZURE_BLOB_ACCOUNT_NAME:-difyai}
      AZURE_BLOB_ACCOUNT_URL: ${AZURE_BLOB_ACCOUNT_URL:-https://<your_account_name>.blob.core.windows.net}
      AZURE_BLOB_CONTAINER_NAME: ${AZURE_BLOB_CONTAINER_NAME:-difyai-container}
      BAIDU_OBS_ACCESS_KEY: ${BAIDU_OBS_ACCESS_KEY:-your-access-key}
      BAIDU_OBS_BUCKET_NAME: ${BAIDU_OBS_BUCKET_NAME:-your-bucket-name}
      BAIDU_OBS_ENDPOINT: ${BAIDU_OBS_ENDPOINT:-your-server-url}
      BAIDU_OBS_SECRET_KEY: ${BAIDU_OBS_SECRET_KEY:-your-secret-key}
      BAIDU_VECTOR_DB_ACCOUNT: ${BAIDU_VECTOR_DB_ACCOUNT:-root}
      BAIDU_VECTOR_DB_API_KEY: ${BAIDU_VECTOR_DB_API_KEY:-dify}
      BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS: ${BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS:-30000}
      BAIDU_VECTOR_DB_DATABASE: ${BAIDU_VECTOR_DB_DATABASE:-dify}
      BAIDU_VECTOR_DB_ENDPOINT: ${BAIDU_VECTOR_DB_ENDPOINT:-http://127.0.0.1:5287}
      BAIDU_VECTOR_DB_REPLICAS: ${BAIDU_VECTOR_DB_REPLICAS:-3}
      BAIDU_VECTOR_DB_SHARD: ${BAIDU_VECTOR_DB_SHARD:-1}
      BROKER_USE_SSL: ${BROKER_USE_SSL:-false}
      CELERY_AUTO_SCALE: ${CELERY_AUTO_SCALE:-false}
      CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}
      CELERY_MAX_WORKERS: ${CELERY_MAX_WORKERS:-}
      CELERY_MIN_WORKERS: ${CELERY_MIN_WORKERS:-}
      CELERY_SENTINEL_MASTER_NAME: ${CELERY_SENTINEL_MASTER_NAME:-}
      CELERY_SENTINEL_SOCKET_TIMEOUT: ${CELERY_SENTINEL_SOCKET_TIMEOUT:-0.1}
      CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}
      CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-}
      CELERY_WORKER_CLASS: ${CELERY_WORKER_CLASS:-}
      CERTBOT_DOMAIN: ${CERTBOT_DOMAIN:-your_domain.com}
      CERTBOT_EMAIL: ${CERTBOT_EMAIL:-your_email@example.com}
      CERTBOT_OPTIONS: ${CERTBOT_OPTIONS:-}
      CHECK_UPDATE_URL: ${CHECK_UPDATE_URL:-https://updates.dify.ai}
      CHROMA_AUTH_CREDENTIALS: ${CHROMA_AUTH_CREDENTIALS:-}
      CHROMA_AUTH_PROVIDER: ${CHROMA_AUTH_PROVIDER:-chromadb.auth.token_authn.TokenAuthClientProvider}
      CHROMA_DATABASE: ${CHROMA_DATABASE:-default_database}
      CHROMA_HOST: ${CHROMA_HOST:-127.0.0.1}
      CHROMA_IS_PERSISTENT: ${CHROMA_IS_PERSISTENT:-TRUE}
      CHROMA_PORT: ${CHROMA_PORT:-8000}
      CHROMA_SERVER_AUTHN_CREDENTIALS: ${CHROMA_SERVER_AUTHN_CREDENTIALS:-difyai123456}
      CHROMA_SERVER_AUTHN_PROVIDER: ${CHROMA_SERVER_AUTHN_PROVIDER:-chromadb.auth.token_authn.TokenAuthenticationServerProvider}
      CHROMA_TENANT: ${CHROMA_TENANT:-default_tenant}
      CODE_EXECUTION_API_KEY: ${CODE_EXECUTION_API_KEY:-dify-sandbox}
      CODE_EXECUTION_CONNECT_TIMEOUT: ${CODE_EXECUTION_CONNECT_TIMEOUT:-10}
      CODE_EXECUTION_ENDPOINT: ${CODE_EXECUTION_ENDPOINT:-http://sandbox:8194}
      CODE_EXECUTION_READ_TIMEOUT: ${CODE_EXECUTION_READ_TIMEOUT:-60}
      CODE_EXECUTION_WRITE_TIMEOUT: ${CODE_EXECUTION_WRITE_TIMEOUT:-10}
      CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024}
      CODE_MAX_DEPTH: ${CODE_MAX_DEPTH:-5}
      CODE_MAX_NUMBER: ${CODE_MAX_NUMBER:-9223372036854775807}
      CODE_MAX_NUMBER_ARRAY_LENGTH: ${CODE_MAX_NUMBER_ARRAY_LENGTH:-1000}
      CODE_MAX_OBJECT_ARRAY_LENGTH: ${CODE_MAX_OBJECT_ARRAY_LENGTH:-30}
      CODE_MAX_PRECISION: ${CODE_MAX_PRECISION:-20}
      CODE_MAX_STRING_ARRAY_LENGTH: ${CODE_MAX_STRING_ARRAY_LENGTH:-30}
      CODE_MAX_STRING_LENGTH: ${CODE_MAX_STRING_LENGTH:-80000}
      CODE_MIN_NUMBER: ${CODE_MIN_NUMBER:--9223372036854775808}
      CONSOLE_API_URL: ${CONSOLE_API_URL:-}
      CONSOLE_CORS_ALLOW_ORIGINS: ${CONSOLE_CORS_ALLOW_ORIGINS:-*}
      CONSOLE_WEB_URL: ${CONSOLE_WEB_URL:-}
      COUCHBASE_BUCKET_NAME: ${COUCHBASE_BUCKET_NAME:-Embeddings}
      COUCHBASE_CONNECTION_STRING: ${COUCHBASE_CONNECTION_STRING:-couchbase://couchbase-server}
      COUCHBASE_PASSWORD: ${COUCHBASE_PASSWORD:-password}
      COUCHBASE_SCOPE_NAME: ${COUCHBASE_SCOPE_NAME:-_default}
      COUCHBASE_USER: ${COUCHBASE_USER:-Administrator}
      CREATE_TIDB_SERVICE_JOB_ENABLED: ${CREATE_TIDB_SERVICE_JOB_ENABLED:-false}
      CSP_WHITELIST: ${CSP_WHITELIST:-}
      DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
      DB_HOST: ${DB_HOST:-db}
      DB_PASSWORD: ${DB_PASSWORD:-difyai123456}
      DB_PLUGIN_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
      DB_PORT: ${DB_PORT:-5432}
      DB_USERNAME: ${DB_USERNAME:-postgres}
      DEBUG: ${DEBUG:-false}
      DEPLOY_ENV: ${DEPLOY_ENV:-PRODUCTION}
      DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0}
      DIFY_INNER_API_KEY: ${INNER_API_KEY_FOR_PLUGIN:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
      DIFY_PORT: ${DIFY_PORT:-5001}
      ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-0.0.0.0}
      ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
      ELASTICSEARCH_PORT: ${ELASTICSEARCH_PORT:-9200}
      ELASTICSEARCH_USERNAME: ${ELASTICSEARCH_USERNAME:-elastic}
      ENDPOINT_URL_TEMPLATE: ${ENDPOINT_URL_TEMPLATE:-http://localhost/e/{hook_id}}
      ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
      ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
      ETCD_ENDPOINTS: ${ETCD_ENDPOINTS:-etcd:2379}
      ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
      ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
      ETL_TYPE: ${ETL_TYPE:-dify}
      EXPOSE_NGINX_PORT: ${PANEL_APP_PORT_HTTP:-8080}
      EXPOSE_NGINX_SSL_PORT: ${PANEL_APP_PORT_HTTPS:-8443}
      EXPOSE_PLUGIN_DAEMON_PORT: ${EXPOSE_PLUGIN_DAEMON_PORT:-5002}
      EXPOSE_PLUGIN_DEBUGGING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
      EXPOSE_PLUGIN_DEBUGGING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
      FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300}
      FILES_URL: ${FILES_URL:-}
      FLASK_DEBUG: ${FLASK_DEBUG:-false}
      FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
      GOOGLE_STORAGE_BUCKET_NAME: ${GOOGLE_STORAGE_BUCKET_NAME:-your-bucket-name}
      GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: ${GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64:-}
      GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-360}
      HTTP_REQUEST_NODE_MAX_BINARY_SIZE: ${HTTP_REQUEST_NODE_MAX_BINARY_SIZE:-10485760}
      HTTP_REQUEST_NODE_MAX_TEXT_SIZE: ${HTTP_REQUEST_NODE_MAX_TEXT_SIZE:-1048576}
      HUAWEI_OBS_ACCESS_KEY: ${HUAWEI_OBS_ACCESS_KEY:-your-access-key}
      HUAWEI_OBS_BUCKET_NAME: ${HUAWEI_OBS_BUCKET_NAME:-your-bucket-name}
      HUAWEI_OBS_SECRET_KEY: ${HUAWEI_OBS_SECRET_KEY:-your-secret-key}
      HUAWEI_OBS_SERVER: ${HUAWEI_OBS_SERVER:-your-server-url}
      INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-4000}
      INIT_PASSWORD: ${INIT_PASSWORD:-}
      INVITE_EXPIRY_HOURS: ${INVITE_EXPIRY_HOURS:-72}
      KIBANA_PORT: ${KIBANA_PORT:-5601}
      LINDORM_PASSWORD: ${LINDORM_PASSWORD:-lindorm}
      LINDORM_URL: ${LINDORM_URL:-http://lindorm:30070}
      LINDORM_USERNAME: ${LINDORM_USERNAME:-lindorm}
      LOG_DATEFORMAT: ${LOG_DATEFORMAT:-%Y-%m-%d %H:%M:%S}
      LOG_FILE: ${LOG_FILE:-/app/logs/server.log}
      LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5}
      LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20}
      LOG_LEVEL: ${LOG_LEVEL:-INFO}
      LOG_TZ: ${LOG_TZ:-UTC}
      MAIL_DEFAULT_SEND_FROM: ${MAIL_DEFAULT_SEND_FROM:-}
      MAIL_TYPE: ${MAIL_TYPE:-resend}
      MARKETPLACE_API_URL: ${MARKETPLACE_API_URL:-https://marketplace.dify.ai}
      MARKETPLACE_ENABLED: ${MARKETPLACE_ENABLED:-true}
      MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
      MAX_SUBMIT_COUNT: ${MAX_SUBMIT_COUNT:-100}
      MAX_VARIABLE_SIZE: ${MAX_VARIABLE_SIZE:-204800}
      MIGRATION_ENABLED: ${MIGRATION_ENABLED:-true}
      MILVUS_AUTHORIZATION_ENABLED: ${MILVUS_AUTHORIZATION_ENABLED:-true}
      MILVUS_ENABLE_HYBRID_SEARCH: ${MILVUS_ENABLE_HYBRID_SEARCH:-False}
      MILVUS_PASSWORD: ${MILVUS_PASSWORD:-Milvus}
      MILVUS_TOKEN: ${MILVUS_TOKEN:-}
      MILVUS_URI: ${MILVUS_URI:-http://127.0.0.1:19530}
      MILVUS_USER: ${MILVUS_USER:-root}
      MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
      MINIO_ADDRESS: ${MINIO_ADDRESS:-minio:9000}
      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
      MULTIMODAL_SEND_FORMAT: ${MULTIMODAL_SEND_FORMAT:-base64}
      MYSCALE_DATABASE: ${MYSCALE_DATABASE:-dify}
      MYSCALE_FTS_PARAMS: ${MYSCALE_FTS_PARAMS:-}
      MYSCALE_HOST: ${MYSCALE_HOST:-myscale}
      MYSCALE_PASSWORD: ${MYSCALE_PASSWORD:-}
      MYSCALE_PORT: ${MYSCALE_PORT:-8123}
      MYSCALE_USER: ${MYSCALE_USER:-default}
      NGINX_CLIENT_MAX_BODY_SIZE: ${NGINX_CLIENT_MAX_BODY_SIZE:-15M}
      NGINX_ENABLE_CERTBOT_CHALLENGE: ${NGINX_ENABLE_CERTBOT_CHALLENGE:-false}
      NGINX_HTTPS_ENABLED: ${NGINX_HTTPS_ENABLED:-false}
      NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT:-65}
      NGINX_PORT: ${NGINX_PORT:-80}
      NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT:-3600s}
      NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT:-3600s}
      NGINX_SERVER_NAME: ${NGINX_SERVER_NAME:-_}
      NGINX_SSL_CERT_FILENAME: ${NGINX_SSL_CERT_FILENAME:-dify.crt}
      NGINX_SSL_CERT_KEY_FILENAME: ${NGINX_SSL_CERT_KEY_FILENAME:-dify.key}
      NGINX_SSL_PORT: ${NGINX_SSL_PORT:-443}
      NGINX_SSL_PROTOCOLS: ${NGINX_SSL_PROTOCOLS:-TLSv1.1 TLSv1.2 TLSv1.3}
      NGINX_WORKER_PROCESSES: ${NGINX_WORKER_PROCESSES:-auto}
      NOTION_CLIENT_ID: ${NOTION_CLIENT_ID:-}
      NOTION_CLIENT_SECRET: ${NOTION_CLIENT_SECRET:-}
      NOTION_INTEGRATION_TYPE: ${NOTION_INTEGRATION_TYPE:-public}
      NOTION_INTERNAL_SECRET: ${NOTION_INTERNAL_SECRET:-}
      OCEANBASE_CLUSTER_NAME: ${OCEANBASE_CLUSTER_NAME:-difyai}
      OCEANBASE_MEMORY_LIMIT: ${OCEANBASE_MEMORY_LIMIT:-6G}
      OCEANBASE_VECTOR_DATABASE: ${OCEANBASE_VECTOR_DATABASE:-test}
      OCEANBASE_VECTOR_HOST: ${OCEANBASE_VECTOR_HOST:-oceanbase}
      OCEANBASE_VECTOR_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
      OCEANBASE_VECTOR_PORT: ${OCEANBASE_VECTOR_PORT:-2881}
      OCEANBASE_VECTOR_USER: ${OCEANBASE_VECTOR_USER:-root@test}
      OCI_ACCESS_KEY: ${OCI_ACCESS_KEY:-your-access-key}
      OCI_BUCKET_NAME: ${OCI_BUCKET_NAME:-your-bucket-name}
      OCI_ENDPOINT: ${OCI_ENDPOINT:-https://objectstorage.us-ashburn-1.oraclecloud.com}
      OCI_REGION: ${OCI_REGION:-us-ashburn-1}
      OCI_SECRET_KEY: ${OCI_SECRET_KEY:-your-secret-key}
      OPENAI_API_BASE: ${OPENAI_API_BASE:-https://api.openai.com/v1}
      OPENDAL_FS_ROOT: ${OPENDAL_FS_ROOT:-storage}
      OPENDAL_SCHEME: ${OPENDAL_SCHEME:-fs}
      OPENSEARCH_BOOTSTRAP_MEMORY_LOCK: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
      OPENSEARCH_DISCOVERY_TYPE: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
      OPENSEARCH_HOST: ${OPENSEARCH_HOST:-opensearch}
      OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
      OPENSEARCH_JAVA_OPTS_MAX: ${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
      OPENSEARCH_JAVA_OPTS_MIN: ${OPENSEARCH_JAVA_OPTS_MIN:-512m}
      OPENSEARCH_MEMLOCK_HARD: ${OPENSEARCH_MEMLOCK_HARD:--1}
      OPENSEARCH_MEMLOCK_SOFT: ${OPENSEARCH_MEMLOCK_SOFT:--1}
      OPENSEARCH_NOFILE_HARD: ${OPENSEARCH_NOFILE_HARD:-65536}
      OPENSEARCH_NOFILE_SOFT: ${OPENSEARCH_NOFILE_SOFT:-65536}
      OPENSEARCH_PASSWORD: ${OPENSEARCH_PASSWORD:-admin}
      OPENSEARCH_PORT: ${OPENSEARCH_PORT:-9200}
      OPENSEARCH_SECURE: ${OPENSEARCH_SECURE:-true}
      OPENSEARCH_USER: ${OPENSEARCH_USER:-admin}
      ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
      ORACLE_DATABASE: ${ORACLE_DATABASE:-FREEPDB1}
      ORACLE_HOST: ${ORACLE_HOST:-oracle}
      ORACLE_PASSWORD: ${ORACLE_PASSWORD:-dify}
      ORACLE_PORT: ${ORACLE_PORT:-1521}
      ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
      ORACLE_USER: ${ORACLE_USER:-dify}
      PGDATA: ${PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGUSER:-${DB_USERNAME}}
      PGVECTOR_DATABASE: ${PGVECTOR_DATABASE:-dify}
      PGVECTOR_HOST: ${PGVECTOR_HOST:-pgvector}
      PGVECTOR_MAX_CONNECTION: ${PGVECTOR_MAX_CONNECTION:-5}
      PGVECTOR_MIN_CONNECTION: ${PGVECTOR_MIN_CONNECTION:-1}
      PGVECTOR_PASSWORD: ${PGVECTOR_PASSWORD:-difyai123456}
      PGVECTOR_PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
      PGVECTOR_PGUSER: ${PGVECTOR_PGUSER:-postgres}
      PGVECTOR_PORT: ${PGVECTOR_PORT:-5432}
      PGVECTOR_POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
      PGVECTOR_POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
      PGVECTOR_USER: ${PGVECTOR_USER:-postgres}
      PGVECTO_RS_DATABASE: ${PGVECTO_RS_DATABASE:-dify}
      PGVECTO_RS_HOST: ${PGVECTO_RS_HOST:-pgvecto-rs}
      PGVECTO_RS_PASSWORD: ${PGVECTO_RS_PASSWORD:-difyai123456}
      PGVECTO_RS_PORT: ${PGVECTO_RS_PORT:-5432}
      PGVECTO_RS_USER: ${PGVECTO_RS_USER:-postgres}
      PLUGIN_DAEMON_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
      PLUGIN_DAEMON_PORT: ${PLUGIN_DAEMON_PORT:-5002}
      PLUGIN_DAEMON_URL: ${PLUGIN_DAEMON_URL:-http://plugin_daemon:5002}
      PLUGIN_DEBUGGING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0}
      PLUGIN_DEBUGGING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003}
      PLUGIN_DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      PLUGIN_DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
      PLUGIN_MAX_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
      PLUGIN_PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
      PLUGIN_REMOTE_INSTALLING_HOST: ${PLUGIN_REMOTE_INSTALL_HOST:-0.0.0.0}
      PLUGIN_REMOTE_INSTALLING_PORT: ${PLUGIN_REMOTE_INSTALL_PORT:-5003}
      PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd}
      POSITION_PROVIDER_EXCLUDES: ${POSITION_PROVIDER_EXCLUDES:-}
      POSITION_PROVIDER_INCLUDES: ${POSITION_PROVIDER_INCLUDES:-}
      POSITION_PROVIDER_PINS: ${POSITION_PROVIDER_PINS:-}
      POSITION_TOOL_EXCLUDES: ${POSITION_TOOL_EXCLUDES:-}
      POSITION_TOOL_INCLUDES: ${POSITION_TOOL_INCLUDES:-}
      POSITION_TOOL_PINS: ${POSITION_TOOL_PINS:-}
      POSTGRES_DB: ${POSTGRES_DB:-${DB_DATABASE}}
      POSTGRES_EFFECTIVE_CACHE_SIZE: ${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}
      POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
      POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-${DB_PASSWORD}}
      POSTGRES_SHARED_BUFFERS: ${POSTGRES_SHARED_BUFFERS:-128MB}
      POSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB}
      PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
      PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512}
      QDRANT_API_KEY: ${QDRANT_API_KEY:-difyai123456}
      QDRANT_CLIENT_TIMEOUT: ${QDRANT_CLIENT_TIMEOUT:-20}
      QDRANT_GRPC_ENABLED: ${QDRANT_GRPC_ENABLED:-false}
      QDRANT_GRPC_PORT: ${QDRANT_GRPC_PORT:-6334}
      QDRANT_URL: ${QDRANT_URL:-http://qdrant:6333}
      REDIS_CLUSTERS: ${REDIS_CLUSTERS:-}
      REDIS_CLUSTERS_PASSWORD: ${REDIS_CLUSTERS_PASSWORD:-}
      REDIS_DB: ${REDIS_DB:-0}
      REDIS_HOST: ${REDIS_HOST:-redis}
      REDIS_PASSWORD: ${REDIS_PASSWORD:-difyai123456}
      REDIS_PORT: ${REDIS_PORT:-6379}
      REDIS_SENTINELS: ${REDIS_SENTINELS:-}
      REDIS_SENTINEL_PASSWORD: ${REDIS_SENTINEL_PASSWORD:-}
      REDIS_SENTINEL_SERVICE_NAME: ${REDIS_SENTINEL_SERVICE_NAME:-}
      REDIS_SENTINEL_SOCKET_TIMEOUT: ${REDIS_SENTINEL_SOCKET_TIMEOUT:-0.1}
      REDIS_SENTINEL_USERNAME: ${REDIS_SENTINEL_USERNAME:-}
      REDIS_USERNAME: ${REDIS_USERNAME:-}
      REDIS_USE_CLUSTERS: ${REDIS_USE_CLUSTERS:-false}
      REDIS_USE_SENTINEL: ${REDIS_USE_SENTINEL:-false}
      REDIS_USE_SSL: ${REDIS_USE_SSL:-false}
      REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS:-30}
      RELYT_DATABASE: ${RELYT_DATABASE:-postgres}
      RELYT_HOST: ${RELYT_HOST:-db}
      RELYT_PASSWORD: ${RELYT_PASSWORD:-difyai123456}
      RELYT_PORT: ${RELYT_PORT:-5432}
      RELYT_USER: ${RELYT_USER:-postgres}
      RESEND_API_KEY: ${RESEND_API_KEY:-your-resend-api-key}
      RESEND_API_URL: ${RESEND_API_URL:-https://api.resend.com}
      RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: ${RESET_PASSWORD_TOKEN_EXPIRY_MINUTES:-5}
      S3_ACCESS_KEY: ${S3_ACCESS_KEY:-}
      S3_BUCKET_NAME: ${S3_BUCKET_NAME:-difyai}
      S3_ENDPOINT: ${S3_ENDPOINT:-}
      S3_REGION: ${S3_REGION:-us-east-1}
      S3_SECRET_KEY: ${S3_SECRET_KEY:-}
      S3_USE_AWS_MANAGED_IAM: ${S3_USE_AWS_MANAGED_IAM:-false}
      SANDBOX_API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
      SANDBOX_ENABLE_NETWORK: ${SANDBOX_ENABLE_NETWORK:-true}
      SANDBOX_GIN_MODE: ${SANDBOX_GIN_MODE:-release}
      SANDBOX_HTTPS_PROXY: ${SANDBOX_HTTPS_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_HTTP_PROXY: ${SANDBOX_HTTP_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_PORT: ${SANDBOX_PORT:-8194}
      SANDBOX_WORKER_TIMEOUT: ${SANDBOX_WORKER_TIMEOUT:-15}
      SCARF_NO_ANALYTICS: ${SCARF_NO_ANALYTICS:-true}
      SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U}
      SENTRY_DSN: ${SENTRY_DSN:-}
      SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
      SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002}
      SERVER_WORKER_AMOUNT: ${SERVER_WORKER_AMOUNT:-1}
      SERVER_WORKER_CLASS: ${SERVER_WORKER_CLASS:-gevent}
      SERVER_WORKER_CONNECTIONS: ${SERVER_WORKER_CONNECTIONS:-10}
      SERVICE_API_URL: ${SERVICE_API_URL:-}
      SMTP_OPPORTUNISTIC_TLS: ${SMTP_OPPORTUNISTIC_TLS:-false}
      SMTP_PASSWORD: ${SMTP_PASSWORD:-}
      SMTP_PORT: ${SMTP_PORT:-465}
      SMTP_SERVER: ${SMTP_SERVER:-}
      SMTP_USERNAME: ${SMTP_USERNAME:-}
      SMTP_USE_TLS: ${SMTP_USE_TLS:-true}
      SQLALCHEMY_ECHO: ${SQLALCHEMY_ECHO:-false}
      SQLALCHEMY_POOL_RECYCLE: ${SQLALCHEMY_POOL_RECYCLE:-3600}
      SQLALCHEMY_POOL_SIZE: ${SQLALCHEMY_POOL_SIZE:-30}
      SSRF_COREDUMP_DIR: ${SSRF_COREDUMP_DIR:-/var/spool/squid}
      SSRF_DEFAULT_CONNECT_TIME_OUT: ${SSRF_DEFAULT_CONNECT_TIME_OUT:-5}
      SSRF_DEFAULT_READ_TIME_OUT: ${SSRF_DEFAULT_READ_TIME_OUT:-5}
      SSRF_DEFAULT_TIME_OUT: ${SSRF_DEFAULT_TIME_OUT:-5}
      SSRF_DEFAULT_WRITE_TIME_OUT: ${SSRF_DEFAULT_WRITE_TIME_OUT:-5}
      SSRF_HTTP_PORT: ${SSRF_HTTP_PORT:-3128}
      SSRF_PROXY_HTTPS_URL: ${SSRF_PROXY_HTTPS_URL:-http://ssrf_proxy:3128}
      SSRF_PROXY_HTTP_URL: ${SSRF_PROXY_HTTP_URL:-http://ssrf_proxy:3128}
      SSRF_REVERSE_PROXY_PORT: ${SSRF_REVERSE_PROXY_PORT:-8194}
      SSRF_SANDBOX_HOST: ${SSRF_SANDBOX_HOST:-sandbox}
      STORAGE_TYPE: ${STORAGE_TYPE:-opendal}
      SUPABASE_API_KEY: ${SUPABASE_API_KEY:-your-access-key}
      SUPABASE_BUCKET_NAME: ${SUPABASE_BUCKET_NAME:-your-bucket-name}
      SUPABASE_URL: ${SUPABASE_URL:-your-server-url}
      TEMPLATE_TRANSFORM_MAX_LENGTH: ${TEMPLATE_TRANSFORM_MAX_LENGTH:-80000}
      TENCENT_COS_BUCKET_NAME: ${TENCENT_COS_BUCKET_NAME:-your-bucket-name}
      TENCENT_COS_REGION: ${TENCENT_COS_REGION:-your-region}
      TENCENT_COS_SCHEME: ${TENCENT_COS_SCHEME:-your-scheme}
      TENCENT_COS_SECRET_ID: ${TENCENT_COS_SECRET_ID:-your-secret-id}
      TENCENT_COS_SECRET_KEY: ${TENCENT_COS_SECRET_KEY:-your-secret-key}
      TENCENT_VECTOR_DB_API_KEY: ${TENCENT_VECTOR_DB_API_KEY:-dify}
      TENCENT_VECTOR_DB_DATABASE: ${TENCENT_VECTOR_DB_DATABASE:-dify}
      TENCENT_VECTOR_DB_REPLICAS: ${TENCENT_VECTOR_DB_REPLICAS:-2}
      TENCENT_VECTOR_DB_SHARD: ${TENCENT_VECTOR_DB_SHARD:-1}
      TENCENT_VECTOR_DB_TIMEOUT: ${TENCENT_VECTOR_DB_TIMEOUT:-30}
      TENCENT_VECTOR_DB_URL: ${TENCENT_VECTOR_DB_URL:-http://127.0.0.1}
      TENCENT_VECTOR_DB_USERNAME: ${TENCENT_VECTOR_DB_USERNAME:-dify}
      TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000}
      TIDB_API_URL: ${TIDB_API_URL:-http://127.0.0.1}
      TIDB_IAM_API_URL: ${TIDB_IAM_API_URL:-http://127.0.0.1}
      TIDB_ON_QDRANT_API_KEY: ${TIDB_ON_QDRANT_API_KEY:-dify}
      TIDB_ON_QDRANT_CLIENT_TIMEOUT: ${TIDB_ON_QDRANT_CLIENT_TIMEOUT:-20}
      TIDB_ON_QDRANT_GRPC_ENABLED: ${TIDB_ON_QDRANT_GRPC_ENABLED:-false}
      TIDB_ON_QDRANT_GRPC_PORT: ${TIDB_ON_QDRANT_GRPC_PORT:-6334}
      TIDB_ON_QDRANT_URL: ${TIDB_ON_QDRANT_URL:-http://127.0.0.1}
      TIDB_PRIVATE_KEY: ${TIDB_PRIVATE_KEY:-dify}
      TIDB_PROJECT_ID: ${TIDB_PROJECT_ID:-dify}
      TIDB_PUBLIC_KEY: ${TIDB_PUBLIC_KEY:-dify}
      TIDB_REGION: ${TIDB_REGION:-regions/aws-us-east-1}
      TIDB_SPEND_LIMIT: ${TIDB_SPEND_LIMIT:-100}
      TIDB_VECTOR_DATABASE: ${TIDB_VECTOR_DATABASE:-dify}
      TIDB_VECTOR_HOST: ${TIDB_VECTOR_HOST:-tidb}
      TIDB_VECTOR_PASSWORD: ${TIDB_VECTOR_PASSWORD:-}
      TIDB_VECTOR_PORT: ${TIDB_VECTOR_PORT:-4000}
      TIDB_VECTOR_USER: ${TIDB_VECTOR_USER:-}
      TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-10}
      UNSTRUCTURED_API_KEY: ${UNSTRUCTURED_API_KEY:-}
      UNSTRUCTURED_API_URL: ${UNSTRUCTURED_API_URL:-}
      UPLOAD_AUDIO_FILE_SIZE_LIMIT: ${UPLOAD_AUDIO_FILE_SIZE_LIMIT:-50}
      UPLOAD_FILE_BATCH_LIMIT: ${UPLOAD_FILE_BATCH_LIMIT:-5}
      UPLOAD_FILE_SIZE_LIMIT: ${UPLOAD_FILE_SIZE_LIMIT:-15}
      UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10}
      UPLOAD_VIDEO_FILE_SIZE_LIMIT: ${UPLOAD_VIDEO_FILE_SIZE_LIMIT:-100}
      UPSTASH_VECTOR_TOKEN: ${UPSTASH_VECTOR_TOKEN:-dify}
      UPSTASH_VECTOR_URL: ${UPSTASH_VECTOR_URL:-https://xxx-vector.upstash.io}
      VECTOR_STORE: ${VECTOR_STORE:-weaviate}
      VIKINGDB_ACCESS_KEY: ${VIKINGDB_ACCESS_KEY:-your-ak}
      VIKINGDB_CONNECTION_TIMEOUT: ${VIKINGDB_CONNECTION_TIMEOUT:-30}
      VIKINGDB_HOST: ${VIKINGDB_HOST:-api-vikingdb.xxx.volces.com}
      VIKINGDB_REGION: ${VIKINGDB_REGION:-cn-shanghai}
      VIKINGDB_SCHEMA: ${VIKINGDB_SCHEMA:-http}
      VIKINGDB_SECRET_KEY: ${VIKINGDB_SECRET_KEY:-your-sk}
      VIKINGDB_SOCKET_TIMEOUT: ${VIKINGDB_SOCKET_TIMEOUT:-30}
      VOLCENGINE_TOS_ACCESS_KEY: ${VOLCENGINE_TOS_ACCESS_KEY:-your-access-key}
      VOLCENGINE_TOS_BUCKET_NAME: ${VOLCENGINE_TOS_BUCKET_NAME:-your-bucket-name}
      VOLCENGINE_TOS_ENDPOINT: ${VOLCENGINE_TOS_ENDPOINT:-your-server-url}
      VOLCENGINE_TOS_REGION: ${VOLCENGINE_TOS_REGION:-your-region}
      VOLCENGINE_TOS_SECRET_KEY: ${VOLCENGINE_TOS_SECRET_KEY:-your-secret-key}
      WEAVIATE_API_KEY: ${WEAVIATE_API_KEY:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ${WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS: ${WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_APIKEY_ENABLED: ${WEAVIATE_AUTHENTICATION_APIKEY_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_USERS: ${WEAVIATE_AUTHENTICATION_APIKEY_USERS:-hello@dify.ai}
      WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED: ${WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED:-true}
      WEAVIATE_AUTHORIZATION_ADMINLIST_USERS: ${WEAVIATE_AUTHORIZATION_ADMINLIST_USERS:-hello@dify.ai}
      WEAVIATE_CLUSTER_HOSTNAME: ${WEAVIATE_CLUSTER_HOSTNAME:-node1}
      WEAVIATE_DEFAULT_VECTORIZER_MODULE: ${WEAVIATE_DEFAULT_VECTORIZER_MODULE:-none}
      WEAVIATE_ENDPOINT: ${WEAVIATE_ENDPOINT:-http://weaviate:8080}
      WEAVIATE_PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
      WEAVIATE_QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}
      WEB_API_CORS_ALLOW_ORIGINS: ${WEB_API_CORS_ALLOW_ORIGINS:-*}
      WEB_SENTRY_DSN: ${WEB_SENTRY_DSN:-}
      WORKFLOW_CALL_MAX_DEPTH: ${WORKFLOW_CALL_MAX_DEPTH:-5}
      WORKFLOW_FILE_UPLOAD_LIMIT: ${WORKFLOW_FILE_UPLOAD_LIMIT:-10}
      WORKFLOW_MAX_EXECUTION_STEPS: ${WORKFLOW_MAX_EXECUTION_STEPS:-500}
      WORKFLOW_MAX_EXECUTION_TIME: ${WORKFLOW_MAX_EXECUTION_TIME:-1200}
      WORKFLOW_PARALLEL_DEPTH_LIMIT: ${WORKFLOW_PARALLEL_DEPTH_LIMIT:-3}
    image: langgenius/dify-plugin-daemon:0.0.3-local
    ports:
    - ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/plugin_daemon:/app/storage
  qdrant:
    container_name: qdrant-dify
    environment:
      QDRANT_API_KEY: ${QDRANT_API_KEY:-difyai123456}
    image: langgenius/qdrant:v1.7.3
    profiles:
    - qdrant
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/qdrant:/qdrant/storage
  redis:
    command: redis-server --requirepass ${REDIS_PASSWORD:-difyai123456}
    container_name: redis-dify
    environment:
      REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}
    healthcheck:
      test:
      - CMD
      - redis-cli
      - ping
    image: redis:6-alpine
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/redis/data:/data
  sandbox:
    container_name: sandbox-dify
    environment:
      API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
      ENABLE_NETWORK: ${SANDBOX_ENABLE_NETWORK:-true}
      GIN_MODE: ${SANDBOX_GIN_MODE:-release}
      HTTPS_PROXY: ${SANDBOX_HTTPS_PROXY:-http://ssrf_proxy:3128}
      HTTP_PROXY: ${SANDBOX_HTTP_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_PORT: ${SANDBOX_PORT:-8194}
      WORKER_TIMEOUT: ${SANDBOX_WORKER_TIMEOUT:-15}
    healthcheck:
      test:
      - CMD
      - curl
      - -f
      - http://localhost:8194/health
    image: langgenius/dify-sandbox:0.2.10
    networks:
    - ssrf_proxy_network
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/sandbox/dependencies:/dependencies
    - ${DIFY_ROOT_PATH}/volumes/sandbox/conf:/conf
  ssrf_proxy:
    container_name: ssrf_proxy-dify
    entrypoint:
    - sh
    - -c
    - "cp /docker-entrypoint-mount.sh /docker-entrypoint.sh && sed -i 's/\r$$//' /docker-entrypoint.sh\
      \ && chmod +x /docker-entrypoint.sh && /docker-entrypoint.sh"
    environment:
      COREDUMP_DIR: ${SSRF_COREDUMP_DIR:-/var/spool/squid}
      HTTP_PORT: ${SSRF_HTTP_PORT:-3128}
      REVERSE_PROXY_PORT: ${SSRF_REVERSE_PROXY_PORT:-8194}
      SANDBOX_HOST: ${SSRF_SANDBOX_HOST:-sandbox}
      SANDBOX_PORT: ${SANDBOX_PORT:-8194}
    image: ubuntu/squid:latest
    networks:
    - ssrf_proxy_network
    - default
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/ssrf_proxy/squid.conf.template:/etc/squid/squid.conf.template
    - ${DIFY_ROOT_PATH}/ssrf_proxy/docker-entrypoint.sh:/docker-entrypoint-mount.sh
  unstructured:
    container_name: unstructured-dify
    image: downloads.unstructured.io/unstructured-io/unstructured-api:latest
    profiles:
    - unstructured
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/unstructured:/app/data
  weaviate:
    container_name: weaviate-dify
    environment:
      AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ${WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:-false}
      AUTHENTICATION_APIKEY_ALLOWED_KEYS: ${WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      AUTHENTICATION_APIKEY_ENABLED: ${WEAVIATE_AUTHENTICATION_APIKEY_ENABLED:-true}
      AUTHENTICATION_APIKEY_USERS: ${WEAVIATE_AUTHENTICATION_APIKEY_USERS:-hello@dify.ai}
      AUTHORIZATION_ADMINLIST_ENABLED: ${WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED:-true}
      AUTHORIZATION_ADMINLIST_USERS: ${WEAVIATE_AUTHORIZATION_ADMINLIST_USERS:-hello@dify.ai}
      CLUSTER_HOSTNAME: ${WEAVIATE_CLUSTER_HOSTNAME:-node1}
      DEFAULT_VECTORIZER_MODULE: ${WEAVIATE_DEFAULT_VECTORIZER_MODULE:-none}
      PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
      QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}
    image: semitechnologies/weaviate:1.19.0
    profiles:
    - ''
    - weaviate
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/weaviate:/var/lib/weaviate
  web:
    container_name: dify
    environment:
      APP_API_URL: ${APP_API_URL:-}
      CONSOLE_API_URL: ${CONSOLE_API_URL:-}
      CSP_WHITELIST: ${CSP_WHITELIST:-}
      INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-}
      MARKETPLACE_API_URL: ${MARKETPLACE_API_URL:-https://marketplace.dify.ai}
      MARKETPLACE_URL: ${MARKETPLACE_URL:-https://marketplace.dify.ai}
      NEXT_TELEMETRY_DISABLED: ${NEXT_TELEMETRY_DISABLED:-0}
      SENTRY_DSN: ${WEB_SENTRY_DSN:-}
      TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000}
      TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-}
    image: langgenius/dify-web:1.0.0
    restart: always
  worker:
    container_name: worker-dify
    depends_on:
    - db
    - redis
    environment:
      ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
      ALIYUN_OSS_ACCESS_KEY: ${ALIYUN_OSS_ACCESS_KEY:-your-access-key}
      ALIYUN_OSS_AUTH_VERSION: ${ALIYUN_OSS_AUTH_VERSION:-v4}
      ALIYUN_OSS_BUCKET_NAME: ${ALIYUN_OSS_BUCKET_NAME:-your-bucket-name}
      ALIYUN_OSS_ENDPOINT: ${ALIYUN_OSS_ENDPOINT:-https://oss-ap-southeast-1-internal.aliyuncs.com}
      ALIYUN_OSS_PATH: ${ALIYUN_OSS_PATH:-your-path}
      ALIYUN_OSS_REGION: ${ALIYUN_OSS_REGION:-ap-southeast-1}
      ALIYUN_OSS_SECRET_KEY: ${ALIYUN_OSS_SECRET_KEY:-your-secret-key}
      ANALYTICDB_ACCOUNT: ${ANALYTICDB_ACCOUNT:-testaccount}
      ANALYTICDB_HOST: ${ANALYTICDB_HOST:-gp-test.aliyuncs.com}
      ANALYTICDB_INSTANCE_ID: ${ANALYTICDB_INSTANCE_ID:-gp-ab123456}
      ANALYTICDB_KEY_ID: ${ANALYTICDB_KEY_ID:-your-ak}
      ANALYTICDB_KEY_SECRET: ${ANALYTICDB_KEY_SECRET:-your-sk}
      ANALYTICDB_MAX_CONNECTION: ${ANALYTICDB_MAX_CONNECTION:-5}
      ANALYTICDB_MIN_CONNECTION: ${ANALYTICDB_MIN_CONNECTION:-1}
      ANALYTICDB_NAMESPACE: ${ANALYTICDB_NAMESPACE:-dify}
      ANALYTICDB_NAMESPACE_PASSWORD: ${ANALYTICDB_NAMESPACE_PASSWORD:-difypassword}
      ANALYTICDB_PASSWORD: ${ANALYTICDB_PASSWORD:-testpassword}
      ANALYTICDB_PORT: ${ANALYTICDB_PORT:-5432}
      ANALYTICDB_REGION_ID: ${ANALYTICDB_REGION_ID:-cn-hangzhou}
      API_SENTRY_DSN: ${API_SENTRY_DSN:-}
      API_SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
      API_SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
      API_TOOL_DEFAULT_CONNECT_TIMEOUT: ${API_TOOL_DEFAULT_CONNECT_TIMEOUT:-10}
      API_TOOL_DEFAULT_READ_TIMEOUT: ${API_TOOL_DEFAULT_READ_TIMEOUT:-60}
      APP_API_URL: ${APP_API_URL:-}
      APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0}
      APP_MAX_EXECUTION_TIME: ${APP_MAX_EXECUTION_TIME:-1200}
      APP_WEB_URL: ${APP_WEB_URL:-}
      AZURE_BLOB_ACCOUNT_KEY: ${AZURE_BLOB_ACCOUNT_KEY:-difyai}
      AZURE_BLOB_ACCOUNT_NAME: ${AZURE_BLOB_ACCOUNT_NAME:-difyai}
      AZURE_BLOB_ACCOUNT_URL: ${AZURE_BLOB_ACCOUNT_URL:-https://<your_account_name>.blob.core.windows.net}
      AZURE_BLOB_CONTAINER_NAME: ${AZURE_BLOB_CONTAINER_NAME:-difyai-container}
      BAIDU_OBS_ACCESS_KEY: ${BAIDU_OBS_ACCESS_KEY:-your-access-key}
      BAIDU_OBS_BUCKET_NAME: ${BAIDU_OBS_BUCKET_NAME:-your-bucket-name}
      BAIDU_OBS_ENDPOINT: ${BAIDU_OBS_ENDPOINT:-your-server-url}
      BAIDU_OBS_SECRET_KEY: ${BAIDU_OBS_SECRET_KEY:-your-secret-key}
      BAIDU_VECTOR_DB_ACCOUNT: ${BAIDU_VECTOR_DB_ACCOUNT:-root}
      BAIDU_VECTOR_DB_API_KEY: ${BAIDU_VECTOR_DB_API_KEY:-dify}
      BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS: ${BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS:-30000}
      BAIDU_VECTOR_DB_DATABASE: ${BAIDU_VECTOR_DB_DATABASE:-dify}
      BAIDU_VECTOR_DB_ENDPOINT: ${BAIDU_VECTOR_DB_ENDPOINT:-http://127.0.0.1:5287}
      BAIDU_VECTOR_DB_REPLICAS: ${BAIDU_VECTOR_DB_REPLICAS:-3}
      BAIDU_VECTOR_DB_SHARD: ${BAIDU_VECTOR_DB_SHARD:-1}
      BROKER_USE_SSL: ${BROKER_USE_SSL:-false}
      CELERY_AUTO_SCALE: ${CELERY_AUTO_SCALE:-false}
      CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}
      CELERY_MAX_WORKERS: ${CELERY_MAX_WORKERS:-}
      CELERY_MIN_WORKERS: ${CELERY_MIN_WORKERS:-}
      CELERY_SENTINEL_MASTER_NAME: ${CELERY_SENTINEL_MASTER_NAME:-}
      CELERY_SENTINEL_SOCKET_TIMEOUT: ${CELERY_SENTINEL_SOCKET_TIMEOUT:-0.1}
      CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}
      CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-}
      CELERY_WORKER_CLASS: ${CELERY_WORKER_CLASS:-}
      CERTBOT_DOMAIN: ${CERTBOT_DOMAIN:-your_domain.com}
      CERTBOT_EMAIL: ${CERTBOT_EMAIL:-your_email@example.com}
      CERTBOT_OPTIONS: ${CERTBOT_OPTIONS:-}
      CHECK_UPDATE_URL: ${CHECK_UPDATE_URL:-https://updates.dify.ai}
      CHROMA_AUTH_CREDENTIALS: ${CHROMA_AUTH_CREDENTIALS:-}
      CHROMA_AUTH_PROVIDER: ${CHROMA_AUTH_PROVIDER:-chromadb.auth.token_authn.TokenAuthClientProvider}
      CHROMA_DATABASE: ${CHROMA_DATABASE:-default_database}
      CHROMA_HOST: ${CHROMA_HOST:-127.0.0.1}
      CHROMA_IS_PERSISTENT: ${CHROMA_IS_PERSISTENT:-TRUE}
      CHROMA_PORT: ${CHROMA_PORT:-8000}
      CHROMA_SERVER_AUTHN_CREDENTIALS: ${CHROMA_SERVER_AUTHN_CREDENTIALS:-difyai123456}
      CHROMA_SERVER_AUTHN_PROVIDER: ${CHROMA_SERVER_AUTHN_PROVIDER:-chromadb.auth.token_authn.TokenAuthenticationServerProvider}
      CHROMA_TENANT: ${CHROMA_TENANT:-default_tenant}
      CODE_EXECUTION_API_KEY: ${CODE_EXECUTION_API_KEY:-dify-sandbox}
      CODE_EXECUTION_CONNECT_TIMEOUT: ${CODE_EXECUTION_CONNECT_TIMEOUT:-10}
      CODE_EXECUTION_ENDPOINT: ${CODE_EXECUTION_ENDPOINT:-http://sandbox:8194}
      CODE_EXECUTION_READ_TIMEOUT: ${CODE_EXECUTION_READ_TIMEOUT:-60}
      CODE_EXECUTION_WRITE_TIMEOUT: ${CODE_EXECUTION_WRITE_TIMEOUT:-10}
      CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024}
      CODE_MAX_DEPTH: ${CODE_MAX_DEPTH:-5}
      CODE_MAX_NUMBER: ${CODE_MAX_NUMBER:-9223372036854775807}
      CODE_MAX_NUMBER_ARRAY_LENGTH: ${CODE_MAX_NUMBER_ARRAY_LENGTH:-1000}
      CODE_MAX_OBJECT_ARRAY_LENGTH: ${CODE_MAX_OBJECT_ARRAY_LENGTH:-30}
      CODE_MAX_PRECISION: ${CODE_MAX_PRECISION:-20}
      CODE_MAX_STRING_ARRAY_LENGTH: ${CODE_MAX_STRING_ARRAY_LENGTH:-30}
      CODE_MAX_STRING_LENGTH: ${CODE_MAX_STRING_LENGTH:-80000}
      CODE_MIN_NUMBER: ${CODE_MIN_NUMBER:--9223372036854775808}
      CONSOLE_API_URL: ${CONSOLE_API_URL:-}
      CONSOLE_CORS_ALLOW_ORIGINS: ${CONSOLE_CORS_ALLOW_ORIGINS:-*}
      CONSOLE_WEB_URL: ${CONSOLE_WEB_URL:-}
      COUCHBASE_BUCKET_NAME: ${COUCHBASE_BUCKET_NAME:-Embeddings}
      COUCHBASE_CONNECTION_STRING: ${COUCHBASE_CONNECTION_STRING:-couchbase://couchbase-server}
      COUCHBASE_PASSWORD: ${COUCHBASE_PASSWORD:-password}
      COUCHBASE_SCOPE_NAME: ${COUCHBASE_SCOPE_NAME:-_default}
      COUCHBASE_USER: ${COUCHBASE_USER:-Administrator}
      CREATE_TIDB_SERVICE_JOB_ENABLED: ${CREATE_TIDB_SERVICE_JOB_ENABLED:-false}
      CSP_WHITELIST: ${CSP_WHITELIST:-}
      DB_DATABASE: ${DB_DATABASE:-dify}
      DB_HOST: ${DB_HOST:-db}
      DB_PASSWORD: ${DB_PASSWORD:-difyai123456}
      DB_PLUGIN_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
      DB_PORT: ${DB_PORT:-5432}
      DB_USERNAME: ${DB_USERNAME:-postgres}
      DEBUG: ${DEBUG:-false}
      DEPLOY_ENV: ${DEPLOY_ENV:-PRODUCTION}
      DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0}
      DIFY_PORT: ${DIFY_PORT:-5001}
      ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-0.0.0.0}
      ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
      ELASTICSEARCH_PORT: ${ELASTICSEARCH_PORT:-9200}
      ELASTICSEARCH_USERNAME: ${ELASTICSEARCH_USERNAME:-elastic}
      ENDPOINT_URL_TEMPLATE: ${ENDPOINT_URL_TEMPLATE:-http://localhost/e/{hook_id}}
      ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
      ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
      ETCD_ENDPOINTS: ${ETCD_ENDPOINTS:-etcd:2379}
      ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
      ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
      ETL_TYPE: ${ETL_TYPE:-dify}
      EXPOSE_NGINX_PORT: ${PANEL_APP_PORT_HTTP:-8080}
      EXPOSE_NGINX_SSL_PORT: ${PANEL_APP_PORT_HTTPS:-8443}
      EXPOSE_PLUGIN_DAEMON_PORT: ${EXPOSE_PLUGIN_DAEMON_PORT:-5002}
      EXPOSE_PLUGIN_DEBUGGING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
      EXPOSE_PLUGIN_DEBUGGING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
      FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300}
      FILES_URL: ${FILES_URL:-}
      FLASK_DEBUG: ${FLASK_DEBUG:-false}
      FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
      GOOGLE_STORAGE_BUCKET_NAME: ${GOOGLE_STORAGE_BUCKET_NAME:-your-bucket-name}
      GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: ${GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64:-}
      GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-360}
      HTTP_REQUEST_NODE_MAX_BINARY_SIZE: ${HTTP_REQUEST_NODE_MAX_BINARY_SIZE:-10485760}
      HTTP_REQUEST_NODE_MAX_TEXT_SIZE: ${HTTP_REQUEST_NODE_MAX_TEXT_SIZE:-1048576}
      HUAWEI_OBS_ACCESS_KEY: ${HUAWEI_OBS_ACCESS_KEY:-your-access-key}
      HUAWEI_OBS_BUCKET_NAME: ${HUAWEI_OBS_BUCKET_NAME:-your-bucket-name}
      HUAWEI_OBS_SECRET_KEY: ${HUAWEI_OBS_SECRET_KEY:-your-secret-key}
      HUAWEI_OBS_SERVER: ${HUAWEI_OBS_SERVER:-your-server-url}
      INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-4000}
      INIT_PASSWORD: ${INIT_PASSWORD:-}
      INNER_API_KEY_FOR_PLUGIN: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      INVITE_EXPIRY_HOURS: ${INVITE_EXPIRY_HOURS:-72}
      KIBANA_PORT: ${KIBANA_PORT:-5601}
      LINDORM_PASSWORD: ${LINDORM_PASSWORD:-lindorm}
      LINDORM_URL: ${LINDORM_URL:-http://lindorm:30070}
      LINDORM_USERNAME: ${LINDORM_USERNAME:-lindorm}
      LOG_DATEFORMAT: ${LOG_DATEFORMAT:-%Y-%m-%d %H:%M:%S}
      LOG_FILE: ${LOG_FILE:-/app/logs/server.log}
      LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5}
      LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20}
      LOG_LEVEL: ${LOG_LEVEL:-INFO}
      LOG_TZ: ${LOG_TZ:-UTC}
      MAIL_DEFAULT_SEND_FROM: ${MAIL_DEFAULT_SEND_FROM:-}
      MAIL_TYPE: ${MAIL_TYPE:-resend}
      MARKETPLACE_API_URL: ${MARKETPLACE_API_URL:-https://marketplace.dify.ai}
      MARKETPLACE_ENABLED: ${MARKETPLACE_ENABLED:-true}
      MAX_SUBMIT_COUNT: ${MAX_SUBMIT_COUNT:-100}
      MAX_VARIABLE_SIZE: ${MAX_VARIABLE_SIZE:-204800}
      MIGRATION_ENABLED: ${MIGRATION_ENABLED:-true}
      MILVUS_AUTHORIZATION_ENABLED: ${MILVUS_AUTHORIZATION_ENABLED:-true}
      MILVUS_ENABLE_HYBRID_SEARCH: ${MILVUS_ENABLE_HYBRID_SEARCH:-False}
      MILVUS_PASSWORD: ${MILVUS_PASSWORD:-Milvus}
      MILVUS_TOKEN: ${MILVUS_TOKEN:-}
      MILVUS_URI: ${MILVUS_URI:-http://127.0.0.1:19530}
      MILVUS_USER: ${MILVUS_USER:-root}
      MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
      MINIO_ADDRESS: ${MINIO_ADDRESS:-minio:9000}
      MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
      MODE: worker
      MULTIMODAL_SEND_FORMAT: ${MULTIMODAL_SEND_FORMAT:-base64}
      MYSCALE_DATABASE: ${MYSCALE_DATABASE:-dify}
      MYSCALE_FTS_PARAMS: ${MYSCALE_FTS_PARAMS:-}
      MYSCALE_HOST: ${MYSCALE_HOST:-myscale}
      MYSCALE_PASSWORD: ${MYSCALE_PASSWORD:-}
      MYSCALE_PORT: ${MYSCALE_PORT:-8123}
      MYSCALE_USER: ${MYSCALE_USER:-default}
      NGINX_CLIENT_MAX_BODY_SIZE: ${NGINX_CLIENT_MAX_BODY_SIZE:-15M}
      NGINX_ENABLE_CERTBOT_CHALLENGE: ${NGINX_ENABLE_CERTBOT_CHALLENGE:-false}
      NGINX_HTTPS_ENABLED: ${NGINX_HTTPS_ENABLED:-false}
      NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT:-65}
      NGINX_PORT: ${NGINX_PORT:-80}
      NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT:-3600s}
      NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT:-3600s}
      NGINX_SERVER_NAME: ${NGINX_SERVER_NAME:-_}
      NGINX_SSL_CERT_FILENAME: ${NGINX_SSL_CERT_FILENAME:-dify.crt}
      NGINX_SSL_CERT_KEY_FILENAME: ${NGINX_SSL_CERT_KEY_FILENAME:-dify.key}
      NGINX_SSL_PORT: ${NGINX_SSL_PORT:-443}
      NGINX_SSL_PROTOCOLS: ${NGINX_SSL_PROTOCOLS:-TLSv1.1 TLSv1.2 TLSv1.3}
      NGINX_WORKER_PROCESSES: ${NGINX_WORKER_PROCESSES:-auto}
      NOTION_CLIENT_ID: ${NOTION_CLIENT_ID:-}
      NOTION_CLIENT_SECRET: ${NOTION_CLIENT_SECRET:-}
      NOTION_INTEGRATION_TYPE: ${NOTION_INTEGRATION_TYPE:-public}
      NOTION_INTERNAL_SECRET: ${NOTION_INTERNAL_SECRET:-}
      OCEANBASE_CLUSTER_NAME: ${OCEANBASE_CLUSTER_NAME:-difyai}
      OCEANBASE_MEMORY_LIMIT: ${OCEANBASE_MEMORY_LIMIT:-6G}
      OCEANBASE_VECTOR_DATABASE: ${OCEANBASE_VECTOR_DATABASE:-test}
      OCEANBASE_VECTOR_HOST: ${OCEANBASE_VECTOR_HOST:-oceanbase}
      OCEANBASE_VECTOR_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
      OCEANBASE_VECTOR_PORT: ${OCEANBASE_VECTOR_PORT:-2881}
      OCEANBASE_VECTOR_USER: ${OCEANBASE_VECTOR_USER:-root@test}
      OCI_ACCESS_KEY: ${OCI_ACCESS_KEY:-your-access-key}
      OCI_BUCKET_NAME: ${OCI_BUCKET_NAME:-your-bucket-name}
      OCI_ENDPOINT: ${OCI_ENDPOINT:-https://objectstorage.us-ashburn-1.oraclecloud.com}
      OCI_REGION: ${OCI_REGION:-us-ashburn-1}
      OCI_SECRET_KEY: ${OCI_SECRET_KEY:-your-secret-key}
      OPENAI_API_BASE: ${OPENAI_API_BASE:-https://api.openai.com/v1}
      OPENDAL_FS_ROOT: ${OPENDAL_FS_ROOT:-storage}
      OPENDAL_SCHEME: ${OPENDAL_SCHEME:-fs}
      OPENSEARCH_BOOTSTRAP_MEMORY_LOCK: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
      OPENSEARCH_DISCOVERY_TYPE: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
      OPENSEARCH_HOST: ${OPENSEARCH_HOST:-opensearch}
      OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
      OPENSEARCH_JAVA_OPTS_MAX: ${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
      OPENSEARCH_JAVA_OPTS_MIN: ${OPENSEARCH_JAVA_OPTS_MIN:-512m}
      OPENSEARCH_MEMLOCK_HARD: ${OPENSEARCH_MEMLOCK_HARD:--1}
      OPENSEARCH_MEMLOCK_SOFT: ${OPENSEARCH_MEMLOCK_SOFT:--1}
      OPENSEARCH_NOFILE_HARD: ${OPENSEARCH_NOFILE_HARD:-65536}
      OPENSEARCH_NOFILE_SOFT: ${OPENSEARCH_NOFILE_SOFT:-65536}
      OPENSEARCH_PASSWORD: ${OPENSEARCH_PASSWORD:-admin}
      OPENSEARCH_PORT: ${OPENSEARCH_PORT:-9200}
      OPENSEARCH_SECURE: ${OPENSEARCH_SECURE:-true}
      OPENSEARCH_USER: ${OPENSEARCH_USER:-admin}
      ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
      ORACLE_DATABASE: ${ORACLE_DATABASE:-FREEPDB1}
      ORACLE_HOST: ${ORACLE_HOST:-oracle}
      ORACLE_PASSWORD: ${ORACLE_PASSWORD:-dify}
      ORACLE_PORT: ${ORACLE_PORT:-1521}
      ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
      ORACLE_USER: ${ORACLE_USER:-dify}
      PGDATA: ${PGDATA:-/var/lib/postgresql/data/pgdata}
      PGUSER: ${PGUSER:-${DB_USERNAME}}
      PGVECTOR_DATABASE: ${PGVECTOR_DATABASE:-dify}
      PGVECTOR_HOST: ${PGVECTOR_HOST:-pgvector}
      PGVECTOR_MAX_CONNECTION: ${PGVECTOR_MAX_CONNECTION:-5}
      PGVECTOR_MIN_CONNECTION: ${PGVECTOR_MIN_CONNECTION:-1}
      PGVECTOR_PASSWORD: ${PGVECTOR_PASSWORD:-difyai123456}
      PGVECTOR_PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
      PGVECTOR_PGUSER: ${PGVECTOR_PGUSER:-postgres}
      PGVECTOR_PORT: ${PGVECTOR_PORT:-5432}
      PGVECTOR_POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
      PGVECTOR_POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
      PGVECTOR_USER: ${PGVECTOR_USER:-postgres}
      PGVECTO_RS_DATABASE: ${PGVECTO_RS_DATABASE:-dify}
      PGVECTO_RS_HOST: ${PGVECTO_RS_HOST:-pgvecto-rs}
      PGVECTO_RS_PASSWORD: ${PGVECTO_RS_PASSWORD:-difyai123456}
      PGVECTO_RS_PORT: ${PGVECTO_RS_PORT:-5432}
      PGVECTO_RS_USER: ${PGVECTO_RS_USER:-postgres}
      PLUGIN_DAEMON_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
      PLUGIN_DAEMON_PORT: ${PLUGIN_DAEMON_PORT:-5002}
      PLUGIN_DAEMON_URL: ${PLUGIN_DAEMON_URL:-http://plugin_daemon:5002}
      PLUGIN_DEBUGGING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0}
      PLUGIN_DEBUGGING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003}
      PLUGIN_DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
      PLUGIN_DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
      PLUGIN_MAX_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
      PLUGIN_PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
      POSITION_PROVIDER_EXCLUDES: ${POSITION_PROVIDER_EXCLUDES:-}
      POSITION_PROVIDER_INCLUDES: ${POSITION_PROVIDER_INCLUDES:-}
      POSITION_PROVIDER_PINS: ${POSITION_PROVIDER_PINS:-}
      POSITION_TOOL_EXCLUDES: ${POSITION_TOOL_EXCLUDES:-}
      POSITION_TOOL_INCLUDES: ${POSITION_TOOL_INCLUDES:-}
      POSITION_TOOL_PINS: ${POSITION_TOOL_PINS:-}
      POSTGRES_DB: ${POSTGRES_DB:-${DB_DATABASE}}
      POSTGRES_EFFECTIVE_CACHE_SIZE: ${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}
      POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
      POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-${DB_PASSWORD}}
      POSTGRES_SHARED_BUFFERS: ${POSTGRES_SHARED_BUFFERS:-128MB}
      POSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB}
      PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512}
      QDRANT_API_KEY: ${QDRANT_API_KEY:-difyai123456}
      QDRANT_CLIENT_TIMEOUT: ${QDRANT_CLIENT_TIMEOUT:-20}
      QDRANT_GRPC_ENABLED: ${QDRANT_GRPC_ENABLED:-false}
      QDRANT_GRPC_PORT: ${QDRANT_GRPC_PORT:-6334}
      QDRANT_URL: ${QDRANT_URL:-http://qdrant:6333}
      REDIS_CLUSTERS: ${REDIS_CLUSTERS:-}
      REDIS_CLUSTERS_PASSWORD: ${REDIS_CLUSTERS_PASSWORD:-}
      REDIS_DB: ${REDIS_DB:-0}
      REDIS_HOST: ${REDIS_HOST:-redis}
      REDIS_PASSWORD: ${REDIS_PASSWORD:-difyai123456}
      REDIS_PORT: ${REDIS_PORT:-6379}
      REDIS_SENTINELS: ${REDIS_SENTINELS:-}
      REDIS_SENTINEL_PASSWORD: ${REDIS_SENTINEL_PASSWORD:-}
      REDIS_SENTINEL_SERVICE_NAME: ${REDIS_SENTINEL_SERVICE_NAME:-}
      REDIS_SENTINEL_SOCKET_TIMEOUT: ${REDIS_SENTINEL_SOCKET_TIMEOUT:-0.1}
      REDIS_SENTINEL_USERNAME: ${REDIS_SENTINEL_USERNAME:-}
      REDIS_USERNAME: ${REDIS_USERNAME:-}
      REDIS_USE_CLUSTERS: ${REDIS_USE_CLUSTERS:-false}
      REDIS_USE_SENTINEL: ${REDIS_USE_SENTINEL:-false}
      REDIS_USE_SSL: ${REDIS_USE_SSL:-false}
      REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS:-30}
      RELYT_DATABASE: ${RELYT_DATABASE:-postgres}
      RELYT_HOST: ${RELYT_HOST:-db}
      RELYT_PASSWORD: ${RELYT_PASSWORD:-difyai123456}
      RELYT_PORT: ${RELYT_PORT:-5432}
      RELYT_USER: ${RELYT_USER:-postgres}
      RESEND_API_KEY: ${RESEND_API_KEY:-your-resend-api-key}
      RESEND_API_URL: ${RESEND_API_URL:-https://api.resend.com}
      RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: ${RESET_PASSWORD_TOKEN_EXPIRY_MINUTES:-5}
      S3_ACCESS_KEY: ${S3_ACCESS_KEY:-}
      S3_BUCKET_NAME: ${S3_BUCKET_NAME:-difyai}
      S3_ENDPOINT: ${S3_ENDPOINT:-}
      S3_REGION: ${S3_REGION:-us-east-1}
      S3_SECRET_KEY: ${S3_SECRET_KEY:-}
      S3_USE_AWS_MANAGED_IAM: ${S3_USE_AWS_MANAGED_IAM:-false}
      SANDBOX_API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
      SANDBOX_ENABLE_NETWORK: ${SANDBOX_ENABLE_NETWORK:-true}
      SANDBOX_GIN_MODE: ${SANDBOX_GIN_MODE:-release}
      SANDBOX_HTTPS_PROXY: ${SANDBOX_HTTPS_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_HTTP_PROXY: ${SANDBOX_HTTP_PROXY:-http://ssrf_proxy:3128}
      SANDBOX_PORT: ${SANDBOX_PORT:-8194}
      SANDBOX_WORKER_TIMEOUT: ${SANDBOX_WORKER_TIMEOUT:-15}
      SCARF_NO_ANALYTICS: ${SCARF_NO_ANALYTICS:-true}
      SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U}
      SENTRY_DSN: ${API_SENTRY_DSN:-}
      SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
      SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
      SERVER_WORKER_AMOUNT: ${SERVER_WORKER_AMOUNT:-1}
      SERVER_WORKER_CLASS: ${SERVER_WORKER_CLASS:-gevent}
      SERVER_WORKER_CONNECTIONS: ${SERVER_WORKER_CONNECTIONS:-10}
      SERVICE_API_URL: ${SERVICE_API_URL:-}
      SMTP_OPPORTUNISTIC_TLS: ${SMTP_OPPORTUNISTIC_TLS:-false}
      SMTP_PASSWORD: ${SMTP_PASSWORD:-}
      SMTP_PORT: ${SMTP_PORT:-465}
      SMTP_SERVER: ${SMTP_SERVER:-}
      SMTP_USERNAME: ${SMTP_USERNAME:-}
      SMTP_USE_TLS: ${SMTP_USE_TLS:-true}
      SQLALCHEMY_ECHO: ${SQLALCHEMY_ECHO:-false}
      SQLALCHEMY_POOL_RECYCLE: ${SQLALCHEMY_POOL_RECYCLE:-3600}
      SQLALCHEMY_POOL_SIZE: ${SQLALCHEMY_POOL_SIZE:-30}
      SSRF_COREDUMP_DIR: ${SSRF_COREDUMP_DIR:-/var/spool/squid}
      SSRF_DEFAULT_CONNECT_TIME_OUT: ${SSRF_DEFAULT_CONNECT_TIME_OUT:-5}
      SSRF_DEFAULT_READ_TIME_OUT: ${SSRF_DEFAULT_READ_TIME_OUT:-5}
      SSRF_DEFAULT_TIME_OUT: ${SSRF_DEFAULT_TIME_OUT:-5}
      SSRF_DEFAULT_WRITE_TIME_OUT: ${SSRF_DEFAULT_WRITE_TIME_OUT:-5}
      SSRF_HTTP_PORT: ${SSRF_HTTP_PORT:-3128}
      SSRF_PROXY_HTTPS_URL: ${SSRF_PROXY_HTTPS_URL:-http://ssrf_proxy:3128}
      SSRF_PROXY_HTTP_URL: ${SSRF_PROXY_HTTP_URL:-http://ssrf_proxy:3128}
      SSRF_REVERSE_PROXY_PORT: ${SSRF_REVERSE_PROXY_PORT:-8194}
      SSRF_SANDBOX_HOST: ${SSRF_SANDBOX_HOST:-sandbox}
      STORAGE_TYPE: ${STORAGE_TYPE:-opendal}
      SUPABASE_API_KEY: ${SUPABASE_API_KEY:-your-access-key}
      SUPABASE_BUCKET_NAME: ${SUPABASE_BUCKET_NAME:-your-bucket-name}
      SUPABASE_URL: ${SUPABASE_URL:-your-server-url}
      TEMPLATE_TRANSFORM_MAX_LENGTH: ${TEMPLATE_TRANSFORM_MAX_LENGTH:-80000}
      TENCENT_COS_BUCKET_NAME: ${TENCENT_COS_BUCKET_NAME:-your-bucket-name}
      TENCENT_COS_REGION: ${TENCENT_COS_REGION:-your-region}
      TENCENT_COS_SCHEME: ${TENCENT_COS_SCHEME:-your-scheme}
      TENCENT_COS_SECRET_ID: ${TENCENT_COS_SECRET_ID:-your-secret-id}
      TENCENT_COS_SECRET_KEY: ${TENCENT_COS_SECRET_KEY:-your-secret-key}
      TENCENT_VECTOR_DB_API_KEY: ${TENCENT_VECTOR_DB_API_KEY:-dify}
      TENCENT_VECTOR_DB_DATABASE: ${TENCENT_VECTOR_DB_DATABASE:-dify}
      TENCENT_VECTOR_DB_REPLICAS: ${TENCENT_VECTOR_DB_REPLICAS:-2}
      TENCENT_VECTOR_DB_SHARD: ${TENCENT_VECTOR_DB_SHARD:-1}
      TENCENT_VECTOR_DB_TIMEOUT: ${TENCENT_VECTOR_DB_TIMEOUT:-30}
      TENCENT_VECTOR_DB_URL: ${TENCENT_VECTOR_DB_URL:-http://127.0.0.1}
      TENCENT_VECTOR_DB_USERNAME: ${TENCENT_VECTOR_DB_USERNAME:-dify}
      TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000}
      TIDB_API_URL: ${TIDB_API_URL:-http://127.0.0.1}
      TIDB_IAM_API_URL: ${TIDB_IAM_API_URL:-http://127.0.0.1}
      TIDB_ON_QDRANT_API_KEY: ${TIDB_ON_QDRANT_API_KEY:-dify}
      TIDB_ON_QDRANT_CLIENT_TIMEOUT: ${TIDB_ON_QDRANT_CLIENT_TIMEOUT:-20}
      TIDB_ON_QDRANT_GRPC_ENABLED: ${TIDB_ON_QDRANT_GRPC_ENABLED:-false}
      TIDB_ON_QDRANT_GRPC_PORT: ${TIDB_ON_QDRANT_GRPC_PORT:-6334}
      TIDB_ON_QDRANT_URL: ${TIDB_ON_QDRANT_URL:-http://127.0.0.1}
      TIDB_PRIVATE_KEY: ${TIDB_PRIVATE_KEY:-dify}
      TIDB_PROJECT_ID: ${TIDB_PROJECT_ID:-dify}
      TIDB_PUBLIC_KEY: ${TIDB_PUBLIC_KEY:-dify}
      TIDB_REGION: ${TIDB_REGION:-regions/aws-us-east-1}
      TIDB_SPEND_LIMIT: ${TIDB_SPEND_LIMIT:-100}
      TIDB_VECTOR_DATABASE: ${TIDB_VECTOR_DATABASE:-dify}
      TIDB_VECTOR_HOST: ${TIDB_VECTOR_HOST:-tidb}
      TIDB_VECTOR_PASSWORD: ${TIDB_VECTOR_PASSWORD:-}
      TIDB_VECTOR_PORT: ${TIDB_VECTOR_PORT:-4000}
      TIDB_VECTOR_USER: ${TIDB_VECTOR_USER:-}
      TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-10}
      UNSTRUCTURED_API_KEY: ${UNSTRUCTURED_API_KEY:-}
      UNSTRUCTURED_API_URL: ${UNSTRUCTURED_API_URL:-}
      UPLOAD_AUDIO_FILE_SIZE_LIMIT: ${UPLOAD_AUDIO_FILE_SIZE_LIMIT:-50}
      UPLOAD_FILE_BATCH_LIMIT: ${UPLOAD_FILE_BATCH_LIMIT:-5}
      UPLOAD_FILE_SIZE_LIMIT: ${UPLOAD_FILE_SIZE_LIMIT:-15}
      UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10}
      UPLOAD_VIDEO_FILE_SIZE_LIMIT: ${UPLOAD_VIDEO_FILE_SIZE_LIMIT:-100}
      UPSTASH_VECTOR_TOKEN: ${UPSTASH_VECTOR_TOKEN:-dify}
      UPSTASH_VECTOR_URL: ${UPSTASH_VECTOR_URL:-https://xxx-vector.upstash.io}
      VECTOR_STORE: ${VECTOR_STORE:-weaviate}
      VIKINGDB_ACCESS_KEY: ${VIKINGDB_ACCESS_KEY:-your-ak}
      VIKINGDB_CONNECTION_TIMEOUT: ${VIKINGDB_CONNECTION_TIMEOUT:-30}
      VIKINGDB_HOST: ${VIKINGDB_HOST:-api-vikingdb.xxx.volces.com}
      VIKINGDB_REGION: ${VIKINGDB_REGION:-cn-shanghai}
      VIKINGDB_SCHEMA: ${VIKINGDB_SCHEMA:-http}
      VIKINGDB_SECRET_KEY: ${VIKINGDB_SECRET_KEY:-your-sk}
      VIKINGDB_SOCKET_TIMEOUT: ${VIKINGDB_SOCKET_TIMEOUT:-30}
      VOLCENGINE_TOS_ACCESS_KEY: ${VOLCENGINE_TOS_ACCESS_KEY:-your-access-key}
      VOLCENGINE_TOS_BUCKET_NAME: ${VOLCENGINE_TOS_BUCKET_NAME:-your-bucket-name}
      VOLCENGINE_TOS_ENDPOINT: ${VOLCENGINE_TOS_ENDPOINT:-your-server-url}
      VOLCENGINE_TOS_REGION: ${VOLCENGINE_TOS_REGION:-your-region}
      VOLCENGINE_TOS_SECRET_KEY: ${VOLCENGINE_TOS_SECRET_KEY:-your-secret-key}
      WEAVIATE_API_KEY: ${WEAVIATE_API_KEY:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ${WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS: ${WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
      WEAVIATE_AUTHENTICATION_APIKEY_ENABLED: ${WEAVIATE_AUTHENTICATION_APIKEY_ENABLED:-true}
      WEAVIATE_AUTHENTICATION_APIKEY_USERS: ${WEAVIATE_AUTHENTICATION_APIKEY_USERS:-hello@dify.ai}
      WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED: ${WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED:-true}
      WEAVIATE_AUTHORIZATION_ADMINLIST_USERS: ${WEAVIATE_AUTHORIZATION_ADMINLIST_USERS:-hello@dify.ai}
      WEAVIATE_CLUSTER_HOSTNAME: ${WEAVIATE_CLUSTER_HOSTNAME:-node1}
      WEAVIATE_DEFAULT_VECTORIZER_MODULE: ${WEAVIATE_DEFAULT_VECTORIZER_MODULE:-none}
      WEAVIATE_ENDPOINT: ${WEAVIATE_ENDPOINT:-http://weaviate:8080}
      WEAVIATE_PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
      WEAVIATE_QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}
      WEB_API_CORS_ALLOW_ORIGINS: ${WEB_API_CORS_ALLOW_ORIGINS:-*}
      WEB_SENTRY_DSN: ${WEB_SENTRY_DSN:-}
      WORKFLOW_CALL_MAX_DEPTH: ${WORKFLOW_CALL_MAX_DEPTH:-5}
      WORKFLOW_FILE_UPLOAD_LIMIT: ${WORKFLOW_FILE_UPLOAD_LIMIT:-10}
      WORKFLOW_MAX_EXECUTION_STEPS: ${WORKFLOW_MAX_EXECUTION_STEPS:-500}
      WORKFLOW_MAX_EXECUTION_TIME: ${WORKFLOW_MAX_EXECUTION_TIME:-1200}
      WORKFLOW_PARALLEL_DEPTH_LIMIT: ${WORKFLOW_PARALLEL_DEPTH_LIMIT:-3}
    image: langgenius/dify-api:1.0.0
    networks:
    - ssrf_proxy_network
    - default
    restart: always
    volumes:
    - ${DIFY_ROOT_PATH}/volumes/app/storage:/app/api/storage
volumes:
  dify_es01_data: null
  oradata: null
x-shared-env:
  ACCESS_TOKEN_EXPIRE_MINUTES: ${ACCESS_TOKEN_EXPIRE_MINUTES:-60}
  ALIYUN_OSS_ACCESS_KEY: ${ALIYUN_OSS_ACCESS_KEY:-your-access-key}
  ALIYUN_OSS_AUTH_VERSION: ${ALIYUN_OSS_AUTH_VERSION:-v4}
  ALIYUN_OSS_BUCKET_NAME: ${ALIYUN_OSS_BUCKET_NAME:-your-bucket-name}
  ALIYUN_OSS_ENDPOINT: ${ALIYUN_OSS_ENDPOINT:-https://oss-ap-southeast-1-internal.aliyuncs.com}
  ALIYUN_OSS_PATH: ${ALIYUN_OSS_PATH:-your-path}
  ALIYUN_OSS_REGION: ${ALIYUN_OSS_REGION:-ap-southeast-1}
  ALIYUN_OSS_SECRET_KEY: ${ALIYUN_OSS_SECRET_KEY:-your-secret-key}
  ANALYTICDB_ACCOUNT: ${ANALYTICDB_ACCOUNT:-testaccount}
  ANALYTICDB_HOST: ${ANALYTICDB_HOST:-gp-test.aliyuncs.com}
  ANALYTICDB_INSTANCE_ID: ${ANALYTICDB_INSTANCE_ID:-gp-ab123456}
  ANALYTICDB_KEY_ID: ${ANALYTICDB_KEY_ID:-your-ak}
  ANALYTICDB_KEY_SECRET: ${ANALYTICDB_KEY_SECRET:-your-sk}
  ANALYTICDB_MAX_CONNECTION: ${ANALYTICDB_MAX_CONNECTION:-5}
  ANALYTICDB_MIN_CONNECTION: ${ANALYTICDB_MIN_CONNECTION:-1}
  ANALYTICDB_NAMESPACE: ${ANALYTICDB_NAMESPACE:-dify}
  ANALYTICDB_NAMESPACE_PASSWORD: ${ANALYTICDB_NAMESPACE_PASSWORD:-difypassword}
  ANALYTICDB_PASSWORD: ${ANALYTICDB_PASSWORD:-testpassword}
  ANALYTICDB_PORT: ${ANALYTICDB_PORT:-5432}
  ANALYTICDB_REGION_ID: ${ANALYTICDB_REGION_ID:-cn-hangzhou}
  API_SENTRY_DSN: ${API_SENTRY_DSN:-}
  API_SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0}
  API_SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0}
  API_TOOL_DEFAULT_CONNECT_TIMEOUT: ${API_TOOL_DEFAULT_CONNECT_TIMEOUT:-10}
  API_TOOL_DEFAULT_READ_TIMEOUT: ${API_TOOL_DEFAULT_READ_TIMEOUT:-60}
  APP_API_URL: ${APP_API_URL:-}
  APP_MAX_ACTIVE_REQUESTS: ${APP_MAX_ACTIVE_REQUESTS:-0}
  APP_MAX_EXECUTION_TIME: ${APP_MAX_EXECUTION_TIME:-1200}
  APP_WEB_URL: ${APP_WEB_URL:-}
  AZURE_BLOB_ACCOUNT_KEY: ${AZURE_BLOB_ACCOUNT_KEY:-difyai}
  AZURE_BLOB_ACCOUNT_NAME: ${AZURE_BLOB_ACCOUNT_NAME:-difyai}
  AZURE_BLOB_ACCOUNT_URL: ${AZURE_BLOB_ACCOUNT_URL:-https://<your_account_name>.blob.core.windows.net}
  AZURE_BLOB_CONTAINER_NAME: ${AZURE_BLOB_CONTAINER_NAME:-difyai-container}
  BAIDU_OBS_ACCESS_KEY: ${BAIDU_OBS_ACCESS_KEY:-your-access-key}
  BAIDU_OBS_BUCKET_NAME: ${BAIDU_OBS_BUCKET_NAME:-your-bucket-name}
  BAIDU_OBS_ENDPOINT: ${BAIDU_OBS_ENDPOINT:-your-server-url}
  BAIDU_OBS_SECRET_KEY: ${BAIDU_OBS_SECRET_KEY:-your-secret-key}
  BAIDU_VECTOR_DB_ACCOUNT: ${BAIDU_VECTOR_DB_ACCOUNT:-root}
  BAIDU_VECTOR_DB_API_KEY: ${BAIDU_VECTOR_DB_API_KEY:-dify}
  BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS: ${BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS:-30000}
  BAIDU_VECTOR_DB_DATABASE: ${BAIDU_VECTOR_DB_DATABASE:-dify}
  BAIDU_VECTOR_DB_ENDPOINT: ${BAIDU_VECTOR_DB_ENDPOINT:-http://127.0.0.1:5287}
  BAIDU_VECTOR_DB_REPLICAS: ${BAIDU_VECTOR_DB_REPLICAS:-3}
  BAIDU_VECTOR_DB_SHARD: ${BAIDU_VECTOR_DB_SHARD:-1}
  BROKER_USE_SSL: ${BROKER_USE_SSL:-false}
  CELERY_AUTO_SCALE: ${CELERY_AUTO_SCALE:-false}
  CELERY_BROKER_URL: ${CELERY_BROKER_URL:-redis://:difyai123456@redis:6379/1}
  CELERY_MAX_WORKERS: ${CELERY_MAX_WORKERS:-}
  CELERY_MIN_WORKERS: ${CELERY_MIN_WORKERS:-}
  CELERY_SENTINEL_MASTER_NAME: ${CELERY_SENTINEL_MASTER_NAME:-}
  CELERY_SENTINEL_SOCKET_TIMEOUT: ${CELERY_SENTINEL_SOCKET_TIMEOUT:-0.1}
  CELERY_USE_SENTINEL: ${CELERY_USE_SENTINEL:-false}
  CELERY_WORKER_AMOUNT: ${CELERY_WORKER_AMOUNT:-}
  CELERY_WORKER_CLASS: ${CELERY_WORKER_CLASS:-}
  CERTBOT_DOMAIN: ${CERTBOT_DOMAIN:-your_domain.com}
  CERTBOT_EMAIL: ${CERTBOT_EMAIL:-your_email@example.com}
  CERTBOT_OPTIONS: ${CERTBOT_OPTIONS:-}
  CHECK_UPDATE_URL: ${CHECK_UPDATE_URL:-https://updates.dify.ai}
  CHROMA_AUTH_CREDENTIALS: ${CHROMA_AUTH_CREDENTIALS:-}
  CHROMA_AUTH_PROVIDER: ${CHROMA_AUTH_PROVIDER:-chromadb.auth.token_authn.TokenAuthClientProvider}
  CHROMA_DATABASE: ${CHROMA_DATABASE:-default_database}
  CHROMA_HOST: ${CHROMA_HOST:-127.0.0.1}
  CHROMA_IS_PERSISTENT: ${CHROMA_IS_PERSISTENT:-TRUE}
  CHROMA_PORT: ${CHROMA_PORT:-8000}
  CHROMA_SERVER_AUTHN_CREDENTIALS: ${CHROMA_SERVER_AUTHN_CREDENTIALS:-difyai123456}
  CHROMA_SERVER_AUTHN_PROVIDER: ${CHROMA_SERVER_AUTHN_PROVIDER:-chromadb.auth.token_authn.TokenAuthenticationServerProvider}
  CHROMA_TENANT: ${CHROMA_TENANT:-default_tenant}
  CODE_EXECUTION_API_KEY: ${CODE_EXECUTION_API_KEY:-dify-sandbox}
  CODE_EXECUTION_CONNECT_TIMEOUT: ${CODE_EXECUTION_CONNECT_TIMEOUT:-10}
  CODE_EXECUTION_ENDPOINT: ${CODE_EXECUTION_ENDPOINT:-http://sandbox:8194}
  CODE_EXECUTION_READ_TIMEOUT: ${CODE_EXECUTION_READ_TIMEOUT:-60}
  CODE_EXECUTION_WRITE_TIMEOUT: ${CODE_EXECUTION_WRITE_TIMEOUT:-10}
  CODE_GENERATION_MAX_TOKENS: ${CODE_GENERATION_MAX_TOKENS:-1024}
  CODE_MAX_DEPTH: ${CODE_MAX_DEPTH:-5}
  CODE_MAX_NUMBER: ${CODE_MAX_NUMBER:-9223372036854775807}
  CODE_MAX_NUMBER_ARRAY_LENGTH: ${CODE_MAX_NUMBER_ARRAY_LENGTH:-1000}
  CODE_MAX_OBJECT_ARRAY_LENGTH: ${CODE_MAX_OBJECT_ARRAY_LENGTH:-30}
  CODE_MAX_PRECISION: ${CODE_MAX_PRECISION:-20}
  CODE_MAX_STRING_ARRAY_LENGTH: ${CODE_MAX_STRING_ARRAY_LENGTH:-30}
  CODE_MAX_STRING_LENGTH: ${CODE_MAX_STRING_LENGTH:-80000}
  CODE_MIN_NUMBER: ${CODE_MIN_NUMBER:--9223372036854775808}
  CONSOLE_API_URL: ${CONSOLE_API_URL:-}
  CONSOLE_CORS_ALLOW_ORIGINS: ${CONSOLE_CORS_ALLOW_ORIGINS:-*}
  CONSOLE_WEB_URL: ${CONSOLE_WEB_URL:-}
  COUCHBASE_BUCKET_NAME: ${COUCHBASE_BUCKET_NAME:-Embeddings}
  COUCHBASE_CONNECTION_STRING: ${COUCHBASE_CONNECTION_STRING:-couchbase://couchbase-server}
  COUCHBASE_PASSWORD: ${COUCHBASE_PASSWORD:-password}
  COUCHBASE_SCOPE_NAME: ${COUCHBASE_SCOPE_NAME:-_default}
  COUCHBASE_USER: ${COUCHBASE_USER:-Administrator}
  CREATE_TIDB_SERVICE_JOB_ENABLED: ${CREATE_TIDB_SERVICE_JOB_ENABLED:-false}
  CSP_WHITELIST: ${CSP_WHITELIST:-}
  DB_DATABASE: ${DB_DATABASE:-dify}
  DB_HOST: ${DB_HOST:-db}
  DB_PASSWORD: ${DB_PASSWORD:-difyai123456}
  DB_PLUGIN_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
  DB_PORT: ${DB_PORT:-5432}
  DB_USERNAME: ${DB_USERNAME:-postgres}
  DEBUG: ${DEBUG:-false}
  DEPLOY_ENV: ${DEPLOY_ENV:-PRODUCTION}
  DIFY_BIND_ADDRESS: ${DIFY_BIND_ADDRESS:-0.0.0.0}
  DIFY_PORT: ${DIFY_PORT:-5001}
  ELASTICSEARCH_HOST: ${ELASTICSEARCH_HOST:-0.0.0.0}
  ELASTICSEARCH_PASSWORD: ${ELASTICSEARCH_PASSWORD:-elastic}
  ELASTICSEARCH_PORT: ${ELASTICSEARCH_PORT:-9200}
  ELASTICSEARCH_USERNAME: ${ELASTICSEARCH_USERNAME:-elastic}
  ENDPOINT_URL_TEMPLATE: ${ENDPOINT_URL_TEMPLATE:-http://localhost/e/{hook_id}}
  ETCD_AUTO_COMPACTION_MODE: ${ETCD_AUTO_COMPACTION_MODE:-revision}
  ETCD_AUTO_COMPACTION_RETENTION: ${ETCD_AUTO_COMPACTION_RETENTION:-1000}
  ETCD_ENDPOINTS: ${ETCD_ENDPOINTS:-etcd:2379}
  ETCD_QUOTA_BACKEND_BYTES: ${ETCD_QUOTA_BACKEND_BYTES:-4294967296}
  ETCD_SNAPSHOT_COUNT: ${ETCD_SNAPSHOT_COUNT:-50000}
  ETL_TYPE: ${ETL_TYPE:-dify}
  EXPOSE_NGINX_PORT: ${PANEL_APP_PORT_HTTP:-8080}
  EXPOSE_NGINX_SSL_PORT: ${PANEL_APP_PORT_HTTPS:-8443}
  EXPOSE_PLUGIN_DAEMON_PORT: ${EXPOSE_PLUGIN_DAEMON_PORT:-5002}
  EXPOSE_PLUGIN_DEBUGGING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
  EXPOSE_PLUGIN_DEBUGGING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
  FILES_ACCESS_TIMEOUT: ${FILES_ACCESS_TIMEOUT:-300}
  FILES_URL: ${FILES_URL:-}
  FLASK_DEBUG: ${FLASK_DEBUG:-false}
  FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
  GOOGLE_STORAGE_BUCKET_NAME: ${GOOGLE_STORAGE_BUCKET_NAME:-your-bucket-name}
  GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64: ${GOOGLE_STORAGE_SERVICE_ACCOUNT_JSON_BASE64:-}
  GUNICORN_TIMEOUT: ${GUNICORN_TIMEOUT:-360}
  HTTP_REQUEST_NODE_MAX_BINARY_SIZE: ${HTTP_REQUEST_NODE_MAX_BINARY_SIZE:-10485760}
  HTTP_REQUEST_NODE_MAX_TEXT_SIZE: ${HTTP_REQUEST_NODE_MAX_TEXT_SIZE:-1048576}
  HUAWEI_OBS_ACCESS_KEY: ${HUAWEI_OBS_ACCESS_KEY:-your-access-key}
  HUAWEI_OBS_BUCKET_NAME: ${HUAWEI_OBS_BUCKET_NAME:-your-bucket-name}
  HUAWEI_OBS_SECRET_KEY: ${HUAWEI_OBS_SECRET_KEY:-your-secret-key}
  HUAWEI_OBS_SERVER: ${HUAWEI_OBS_SERVER:-your-server-url}
  INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH: ${INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH:-4000}
  INIT_PASSWORD: ${INIT_PASSWORD:-}
  INVITE_EXPIRY_HOURS: ${INVITE_EXPIRY_HOURS:-72}
  KIBANA_PORT: ${KIBANA_PORT:-5601}
  LINDORM_PASSWORD: ${LINDORM_PASSWORD:-lindorm}
  LINDORM_URL: ${LINDORM_URL:-http://lindorm:30070}
  LINDORM_USERNAME: ${LINDORM_USERNAME:-lindorm}
  LOG_DATEFORMAT: ${LOG_DATEFORMAT:-%Y-%m-%d %H:%M:%S}
  LOG_FILE: ${LOG_FILE:-/app/logs/server.log}
  LOG_FILE_BACKUP_COUNT: ${LOG_FILE_BACKUP_COUNT:-5}
  LOG_FILE_MAX_SIZE: ${LOG_FILE_MAX_SIZE:-20}
  LOG_LEVEL: ${LOG_LEVEL:-INFO}
  LOG_TZ: ${LOG_TZ:-UTC}
  MAIL_DEFAULT_SEND_FROM: ${MAIL_DEFAULT_SEND_FROM:-}
  MAIL_TYPE: ${MAIL_TYPE:-resend}
  MARKETPLACE_API_URL: ${MARKETPLACE_API_URL:-https://marketplace.dify.ai}
  MARKETPLACE_ENABLED: ${MARKETPLACE_ENABLED:-true}
  MAX_SUBMIT_COUNT: ${MAX_SUBMIT_COUNT:-100}
  MAX_VARIABLE_SIZE: ${MAX_VARIABLE_SIZE:-204800}
  MIGRATION_ENABLED: ${MIGRATION_ENABLED:-true}
  MILVUS_AUTHORIZATION_ENABLED: ${MILVUS_AUTHORIZATION_ENABLED:-true}
  MILVUS_ENABLE_HYBRID_SEARCH: ${MILVUS_ENABLE_HYBRID_SEARCH:-False}
  MILVUS_PASSWORD: ${MILVUS_PASSWORD:-Milvus}
  MILVUS_TOKEN: ${MILVUS_TOKEN:-}
  MILVUS_URI: ${MILVUS_URI:-http://127.0.0.1:19530}
  MILVUS_USER: ${MILVUS_USER:-root}
  MINIO_ACCESS_KEY: ${MINIO_ACCESS_KEY:-minioadmin}
  MINIO_ADDRESS: ${MINIO_ADDRESS:-minio:9000}
  MINIO_SECRET_KEY: ${MINIO_SECRET_KEY:-minioadmin}
  MULTIMODAL_SEND_FORMAT: ${MULTIMODAL_SEND_FORMAT:-base64}
  MYSCALE_DATABASE: ${MYSCALE_DATABASE:-dify}
  MYSCALE_FTS_PARAMS: ${MYSCALE_FTS_PARAMS:-}
  MYSCALE_HOST: ${MYSCALE_HOST:-myscale}
  MYSCALE_PASSWORD: ${MYSCALE_PASSWORD:-}
  MYSCALE_PORT: ${MYSCALE_PORT:-8123}
  MYSCALE_USER: ${MYSCALE_USER:-default}
  NGINX_CLIENT_MAX_BODY_SIZE: ${NGINX_CLIENT_MAX_BODY_SIZE:-15M}
  NGINX_ENABLE_CERTBOT_CHALLENGE: ${NGINX_ENABLE_CERTBOT_CHALLENGE:-false}
  NGINX_HTTPS_ENABLED: ${NGINX_HTTPS_ENABLED:-false}
  NGINX_KEEPALIVE_TIMEOUT: ${NGINX_KEEPALIVE_TIMEOUT:-65}
  NGINX_PORT: ${NGINX_PORT:-80}
  NGINX_PROXY_READ_TIMEOUT: ${NGINX_PROXY_READ_TIMEOUT:-3600s}
  NGINX_PROXY_SEND_TIMEOUT: ${NGINX_PROXY_SEND_TIMEOUT:-3600s}
  NGINX_SERVER_NAME: ${NGINX_SERVER_NAME:-_}
  NGINX_SSL_CERT_FILENAME: ${NGINX_SSL_CERT_FILENAME:-dify.crt}
  NGINX_SSL_CERT_KEY_FILENAME: ${NGINX_SSL_CERT_KEY_FILENAME:-dify.key}
  NGINX_SSL_PORT: ${NGINX_SSL_PORT:-443}
  NGINX_SSL_PROTOCOLS: ${NGINX_SSL_PROTOCOLS:-TLSv1.1 TLSv1.2 TLSv1.3}
  NGINX_WORKER_PROCESSES: ${NGINX_WORKER_PROCESSES:-auto}
  NOTION_CLIENT_ID: ${NOTION_CLIENT_ID:-}
  NOTION_CLIENT_SECRET: ${NOTION_CLIENT_SECRET:-}
  NOTION_INTEGRATION_TYPE: ${NOTION_INTEGRATION_TYPE:-public}
  NOTION_INTERNAL_SECRET: ${NOTION_INTERNAL_SECRET:-}
  OCEANBASE_CLUSTER_NAME: ${OCEANBASE_CLUSTER_NAME:-difyai}
  OCEANBASE_MEMORY_LIMIT: ${OCEANBASE_MEMORY_LIMIT:-6G}
  OCEANBASE_VECTOR_DATABASE: ${OCEANBASE_VECTOR_DATABASE:-test}
  OCEANBASE_VECTOR_HOST: ${OCEANBASE_VECTOR_HOST:-oceanbase}
  OCEANBASE_VECTOR_PASSWORD: ${OCEANBASE_VECTOR_PASSWORD:-difyai123456}
  OCEANBASE_VECTOR_PORT: ${OCEANBASE_VECTOR_PORT:-2881}
  OCEANBASE_VECTOR_USER: ${OCEANBASE_VECTOR_USER:-root@test}
  OCI_ACCESS_KEY: ${OCI_ACCESS_KEY:-your-access-key}
  OCI_BUCKET_NAME: ${OCI_BUCKET_NAME:-your-bucket-name}
  OCI_ENDPOINT: ${OCI_ENDPOINT:-https://objectstorage.us-ashburn-1.oraclecloud.com}
  OCI_REGION: ${OCI_REGION:-us-ashburn-1}
  OCI_SECRET_KEY: ${OCI_SECRET_KEY:-your-secret-key}
  OPENAI_API_BASE: ${OPENAI_API_BASE:-https://api.openai.com/v1}
  OPENDAL_FS_ROOT: ${OPENDAL_FS_ROOT:-storage}
  OPENDAL_SCHEME: ${OPENDAL_SCHEME:-fs}
  OPENSEARCH_BOOTSTRAP_MEMORY_LOCK: ${OPENSEARCH_BOOTSTRAP_MEMORY_LOCK:-true}
  OPENSEARCH_DISCOVERY_TYPE: ${OPENSEARCH_DISCOVERY_TYPE:-single-node}
  OPENSEARCH_HOST: ${OPENSEARCH_HOST:-opensearch}
  OPENSEARCH_INITIAL_ADMIN_PASSWORD: ${OPENSEARCH_INITIAL_ADMIN_PASSWORD:-Qazwsxedc!@#123}
  OPENSEARCH_JAVA_OPTS_MAX: ${OPENSEARCH_JAVA_OPTS_MAX:-1024m}
  OPENSEARCH_JAVA_OPTS_MIN: ${OPENSEARCH_JAVA_OPTS_MIN:-512m}
  OPENSEARCH_MEMLOCK_HARD: ${OPENSEARCH_MEMLOCK_HARD:--1}
  OPENSEARCH_MEMLOCK_SOFT: ${OPENSEARCH_MEMLOCK_SOFT:--1}
  OPENSEARCH_NOFILE_HARD: ${OPENSEARCH_NOFILE_HARD:-65536}
  OPENSEARCH_NOFILE_SOFT: ${OPENSEARCH_NOFILE_SOFT:-65536}
  OPENSEARCH_PASSWORD: ${OPENSEARCH_PASSWORD:-admin}
  OPENSEARCH_PORT: ${OPENSEARCH_PORT:-9200}
  OPENSEARCH_SECURE: ${OPENSEARCH_SECURE:-true}
  OPENSEARCH_USER: ${OPENSEARCH_USER:-admin}
  ORACLE_CHARACTERSET: ${ORACLE_CHARACTERSET:-AL32UTF8}
  ORACLE_DATABASE: ${ORACLE_DATABASE:-FREEPDB1}
  ORACLE_HOST: ${ORACLE_HOST:-oracle}
  ORACLE_PASSWORD: ${ORACLE_PASSWORD:-dify}
  ORACLE_PORT: ${ORACLE_PORT:-1521}
  ORACLE_PWD: ${ORACLE_PWD:-Dify123456}
  ORACLE_USER: ${ORACLE_USER:-dify}
  PGDATA: ${PGDATA:-/var/lib/postgresql/data/pgdata}
  PGUSER: ${PGUSER:-${DB_USERNAME}}
  PGVECTOR_DATABASE: ${PGVECTOR_DATABASE:-dify}
  PGVECTOR_HOST: ${PGVECTOR_HOST:-pgvector}
  PGVECTOR_MAX_CONNECTION: ${PGVECTOR_MAX_CONNECTION:-5}
  PGVECTOR_MIN_CONNECTION: ${PGVECTOR_MIN_CONNECTION:-1}
  PGVECTOR_PASSWORD: ${PGVECTOR_PASSWORD:-difyai123456}
  PGVECTOR_PGDATA: ${PGVECTOR_PGDATA:-/var/lib/postgresql/data/pgdata}
  PGVECTOR_PGUSER: ${PGVECTOR_PGUSER:-postgres}
  PGVECTOR_PORT: ${PGVECTOR_PORT:-5432}
  PGVECTOR_POSTGRES_DB: ${PGVECTOR_POSTGRES_DB:-dify}
  PGVECTOR_POSTGRES_PASSWORD: ${PGVECTOR_POSTGRES_PASSWORD:-difyai123456}
  PGVECTOR_USER: ${PGVECTOR_USER:-postgres}
  PGVECTO_RS_DATABASE: ${PGVECTO_RS_DATABASE:-dify}
  PGVECTO_RS_HOST: ${PGVECTO_RS_HOST:-pgvecto-rs}
  PGVECTO_RS_PASSWORD: ${PGVECTO_RS_PASSWORD:-difyai123456}
  PGVECTO_RS_PORT: ${PGVECTO_RS_PORT:-5432}
  PGVECTO_RS_USER: ${PGVECTO_RS_USER:-postgres}
  PLUGIN_DAEMON_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
  PLUGIN_DAEMON_PORT: ${PLUGIN_DAEMON_PORT:-5002}
  PLUGIN_DAEMON_URL: ${PLUGIN_DAEMON_URL:-http://plugin_daemon:5002}
  PLUGIN_DEBUGGING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0}
  PLUGIN_DEBUGGING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003}
  PLUGIN_DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
  PLUGIN_DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
  PLUGIN_MAX_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
  PLUGIN_PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
  POSITION_PROVIDER_EXCLUDES: ${POSITION_PROVIDER_EXCLUDES:-}
  POSITION_PROVIDER_INCLUDES: ${POSITION_PROVIDER_INCLUDES:-}
  POSITION_PROVIDER_PINS: ${POSITION_PROVIDER_PINS:-}
  POSITION_TOOL_EXCLUDES: ${POSITION_TOOL_EXCLUDES:-}
  POSITION_TOOL_INCLUDES: ${POSITION_TOOL_INCLUDES:-}
  POSITION_TOOL_PINS: ${POSITION_TOOL_PINS:-}
  POSTGRES_DB: ${POSTGRES_DB:-${DB_DATABASE}}
  POSTGRES_EFFECTIVE_CACHE_SIZE: ${POSTGRES_EFFECTIVE_CACHE_SIZE:-4096MB}
  POSTGRES_MAINTENANCE_WORK_MEM: ${POSTGRES_MAINTENANCE_WORK_MEM:-64MB}
  POSTGRES_MAX_CONNECTIONS: ${POSTGRES_MAX_CONNECTIONS:-100}
  POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-${DB_PASSWORD}}
  POSTGRES_SHARED_BUFFERS: ${POSTGRES_SHARED_BUFFERS:-128MB}
  POSTGRES_WORK_MEM: ${POSTGRES_WORK_MEM:-4MB}
  PROMPT_GENERATION_MAX_TOKENS: ${PROMPT_GENERATION_MAX_TOKENS:-512}
  QDRANT_API_KEY: ${QDRANT_API_KEY:-difyai123456}
  QDRANT_CLIENT_TIMEOUT: ${QDRANT_CLIENT_TIMEOUT:-20}
  QDRANT_GRPC_ENABLED: ${QDRANT_GRPC_ENABLED:-false}
  QDRANT_GRPC_PORT: ${QDRANT_GRPC_PORT:-6334}
  QDRANT_URL: ${QDRANT_URL:-http://qdrant:6333}
  REDIS_CLUSTERS: ${REDIS_CLUSTERS:-}
  REDIS_CLUSTERS_PASSWORD: ${REDIS_CLUSTERS_PASSWORD:-}
  REDIS_DB: ${REDIS_DB:-0}
  REDIS_HOST: ${REDIS_HOST:-redis}
  REDIS_PASSWORD: ${REDIS_PASSWORD:-difyai123456}
  REDIS_PORT: ${REDIS_PORT:-6379}
  REDIS_SENTINELS: ${REDIS_SENTINELS:-}
  REDIS_SENTINEL_PASSWORD: ${REDIS_SENTINEL_PASSWORD:-}
  REDIS_SENTINEL_SERVICE_NAME: ${REDIS_SENTINEL_SERVICE_NAME:-}
  REDIS_SENTINEL_SOCKET_TIMEOUT: ${REDIS_SENTINEL_SOCKET_TIMEOUT:-0.1}
  REDIS_SENTINEL_USERNAME: ${REDIS_SENTINEL_USERNAME:-}
  REDIS_USERNAME: ${REDIS_USERNAME:-}
  REDIS_USE_CLUSTERS: ${REDIS_USE_CLUSTERS:-false}
  REDIS_USE_SENTINEL: ${REDIS_USE_SENTINEL:-false}
  REDIS_USE_SSL: ${REDIS_USE_SSL:-false}
  REFRESH_TOKEN_EXPIRE_DAYS: ${REFRESH_TOKEN_EXPIRE_DAYS:-30}
  RELYT_DATABASE: ${RELYT_DATABASE:-postgres}
  RELYT_HOST: ${RELYT_HOST:-db}
  RELYT_PASSWORD: ${RELYT_PASSWORD:-difyai123456}
  RELYT_PORT: ${RELYT_PORT:-5432}
  RELYT_USER: ${RELYT_USER:-postgres}
  RESEND_API_KEY: ${RESEND_API_KEY:-your-resend-api-key}
  RESEND_API_URL: ${RESEND_API_URL:-https://api.resend.com}
  RESET_PASSWORD_TOKEN_EXPIRY_MINUTES: ${RESET_PASSWORD_TOKEN_EXPIRY_MINUTES:-5}
  S3_ACCESS_KEY: ${S3_ACCESS_KEY:-}
  S3_BUCKET_NAME: ${S3_BUCKET_NAME:-difyai}
  S3_ENDPOINT: ${S3_ENDPOINT:-}
  S3_REGION: ${S3_REGION:-us-east-1}
  S3_SECRET_KEY: ${S3_SECRET_KEY:-}
  S3_USE_AWS_MANAGED_IAM: ${S3_USE_AWS_MANAGED_IAM:-false}
  SANDBOX_API_KEY: ${SANDBOX_API_KEY:-dify-sandbox}
  SANDBOX_ENABLE_NETWORK: ${SANDBOX_ENABLE_NETWORK:-true}
  SANDBOX_GIN_MODE: ${SANDBOX_GIN_MODE:-release}
  SANDBOX_HTTPS_PROXY: ${SANDBOX_HTTPS_PROXY:-http://ssrf_proxy:3128}
  SANDBOX_HTTP_PROXY: ${SANDBOX_HTTP_PROXY:-http://ssrf_proxy:3128}
  SANDBOX_PORT: ${SANDBOX_PORT:-8194}
  SANDBOX_WORKER_TIMEOUT: ${SANDBOX_WORKER_TIMEOUT:-15}
  SCARF_NO_ANALYTICS: ${SCARF_NO_ANALYTICS:-true}
  SECRET_KEY: ${SECRET_KEY:-sk-9f73s3ljTXVcMT3Blb3ljTqtsKiGHXVcMT3BlbkFJLK7U}
  SENTRY_DSN: ${SENTRY_DSN:-}
  SERVER_WORKER_AMOUNT: ${SERVER_WORKER_AMOUNT:-1}
  SERVER_WORKER_CLASS: ${SERVER_WORKER_CLASS:-gevent}
  SERVER_WORKER_CONNECTIONS: ${SERVER_WORKER_CONNECTIONS:-10}
  SERVICE_API_URL: ${SERVICE_API_URL:-}
  SMTP_OPPORTUNISTIC_TLS: ${SMTP_OPPORTUNISTIC_TLS:-false}
  SMTP_PASSWORD: ${SMTP_PASSWORD:-}
  SMTP_PORT: ${SMTP_PORT:-465}
  SMTP_SERVER: ${SMTP_SERVER:-}
  SMTP_USERNAME: ${SMTP_USERNAME:-}
  SMTP_USE_TLS: ${SMTP_USE_TLS:-true}
  SQLALCHEMY_ECHO: ${SQLALCHEMY_ECHO:-false}
  SQLALCHEMY_POOL_RECYCLE: ${SQLALCHEMY_POOL_RECYCLE:-3600}
  SQLALCHEMY_POOL_SIZE: ${SQLALCHEMY_POOL_SIZE:-30}
  SSRF_COREDUMP_DIR: ${SSRF_COREDUMP_DIR:-/var/spool/squid}
  SSRF_DEFAULT_CONNECT_TIME_OUT: ${SSRF_DEFAULT_CONNECT_TIME_OUT:-5}
  SSRF_DEFAULT_READ_TIME_OUT: ${SSRF_DEFAULT_READ_TIME_OUT:-5}
  SSRF_DEFAULT_TIME_OUT: ${SSRF_DEFAULT_TIME_OUT:-5}
  SSRF_DEFAULT_WRITE_TIME_OUT: ${SSRF_DEFAULT_WRITE_TIME_OUT:-5}
  SSRF_HTTP_PORT: ${SSRF_HTTP_PORT:-3128}
  SSRF_PROXY_HTTPS_URL: ${SSRF_PROXY_HTTPS_URL:-http://ssrf_proxy:3128}
  SSRF_PROXY_HTTP_URL: ${SSRF_PROXY_HTTP_URL:-http://ssrf_proxy:3128}
  SSRF_REVERSE_PROXY_PORT: ${SSRF_REVERSE_PROXY_PORT:-8194}
  SSRF_SANDBOX_HOST: ${SSRF_SANDBOX_HOST:-sandbox}
  STORAGE_TYPE: ${STORAGE_TYPE:-opendal}
  SUPABASE_API_KEY: ${SUPABASE_API_KEY:-your-access-key}
  SUPABASE_BUCKET_NAME: ${SUPABASE_BUCKET_NAME:-your-bucket-name}
  SUPABASE_URL: ${SUPABASE_URL:-your-server-url}
  TEMPLATE_TRANSFORM_MAX_LENGTH: ${TEMPLATE_TRANSFORM_MAX_LENGTH:-80000}
  TENCENT_COS_BUCKET_NAME: ${TENCENT_COS_BUCKET_NAME:-your-bucket-name}
  TENCENT_COS_REGION: ${TENCENT_COS_REGION:-your-region}
  TENCENT_COS_SCHEME: ${TENCENT_COS_SCHEME:-your-scheme}
  TENCENT_COS_SECRET_ID: ${TENCENT_COS_SECRET_ID:-your-secret-id}
  TENCENT_COS_SECRET_KEY: ${TENCENT_COS_SECRET_KEY:-your-secret-key}
  TENCENT_VECTOR_DB_API_KEY: ${TENCENT_VECTOR_DB_API_KEY:-dify}
  TENCENT_VECTOR_DB_DATABASE: ${TENCENT_VECTOR_DB_DATABASE:-dify}
  TENCENT_VECTOR_DB_REPLICAS: ${TENCENT_VECTOR_DB_REPLICAS:-2}
  TENCENT_VECTOR_DB_SHARD: ${TENCENT_VECTOR_DB_SHARD:-1}
  TENCENT_VECTOR_DB_TIMEOUT: ${TENCENT_VECTOR_DB_TIMEOUT:-30}
  TENCENT_VECTOR_DB_URL: ${TENCENT_VECTOR_DB_URL:-http://127.0.0.1}
  TENCENT_VECTOR_DB_USERNAME: ${TENCENT_VECTOR_DB_USERNAME:-dify}
  TEXT_GENERATION_TIMEOUT_MS: ${TEXT_GENERATION_TIMEOUT_MS:-60000}
  TIDB_API_URL: ${TIDB_API_URL:-http://127.0.0.1}
  TIDB_IAM_API_URL: ${TIDB_IAM_API_URL:-http://127.0.0.1}
  TIDB_ON_QDRANT_API_KEY: ${TIDB_ON_QDRANT_API_KEY:-dify}
  TIDB_ON_QDRANT_CLIENT_TIMEOUT: ${TIDB_ON_QDRANT_CLIENT_TIMEOUT:-20}
  TIDB_ON_QDRANT_GRPC_ENABLED: ${TIDB_ON_QDRANT_GRPC_ENABLED:-false}
  TIDB_ON_QDRANT_GRPC_PORT: ${TIDB_ON_QDRANT_GRPC_PORT:-6334}
  TIDB_ON_QDRANT_URL: ${TIDB_ON_QDRANT_URL:-http://127.0.0.1}
  TIDB_PRIVATE_KEY: ${TIDB_PRIVATE_KEY:-dify}
  TIDB_PROJECT_ID: ${TIDB_PROJECT_ID:-dify}
  TIDB_PUBLIC_KEY: ${TIDB_PUBLIC_KEY:-dify}
  TIDB_REGION: ${TIDB_REGION:-regions/aws-us-east-1}
  TIDB_SPEND_LIMIT: ${TIDB_SPEND_LIMIT:-100}
  TIDB_VECTOR_DATABASE: ${TIDB_VECTOR_DATABASE:-dify}
  TIDB_VECTOR_HOST: ${TIDB_VECTOR_HOST:-tidb}
  TIDB_VECTOR_PASSWORD: ${TIDB_VECTOR_PASSWORD:-}
  TIDB_VECTOR_PORT: ${TIDB_VECTOR_PORT:-4000}
  TIDB_VECTOR_USER: ${TIDB_VECTOR_USER:-}
  TOP_K_MAX_VALUE: ${TOP_K_MAX_VALUE:-10}
  UNSTRUCTURED_API_KEY: ${UNSTRUCTURED_API_KEY:-}
  UNSTRUCTURED_API_URL: ${UNSTRUCTURED_API_URL:-}
  UPLOAD_AUDIO_FILE_SIZE_LIMIT: ${UPLOAD_AUDIO_FILE_SIZE_LIMIT:-50}
  UPLOAD_FILE_BATCH_LIMIT: ${UPLOAD_FILE_BATCH_LIMIT:-5}
  UPLOAD_FILE_SIZE_LIMIT: ${UPLOAD_FILE_SIZE_LIMIT:-15}
  UPLOAD_IMAGE_FILE_SIZE_LIMIT: ${UPLOAD_IMAGE_FILE_SIZE_LIMIT:-10}
  UPLOAD_VIDEO_FILE_SIZE_LIMIT: ${UPLOAD_VIDEO_FILE_SIZE_LIMIT:-100}
  UPSTASH_VECTOR_TOKEN: ${UPSTASH_VECTOR_TOKEN:-dify}
  UPSTASH_VECTOR_URL: ${UPSTASH_VECTOR_URL:-https://xxx-vector.upstash.io}
  VECTOR_STORE: ${VECTOR_STORE:-weaviate}
  VIKINGDB_ACCESS_KEY: ${VIKINGDB_ACCESS_KEY:-your-ak}
  VIKINGDB_CONNECTION_TIMEOUT: ${VIKINGDB_CONNECTION_TIMEOUT:-30}
  VIKINGDB_HOST: ${VIKINGDB_HOST:-api-vikingdb.xxx.volces.com}
  VIKINGDB_REGION: ${VIKINGDB_REGION:-cn-shanghai}
  VIKINGDB_SCHEMA: ${VIKINGDB_SCHEMA:-http}
  VIKINGDB_SECRET_KEY: ${VIKINGDB_SECRET_KEY:-your-sk}
  VIKINGDB_SOCKET_TIMEOUT: ${VIKINGDB_SOCKET_TIMEOUT:-30}
  VOLCENGINE_TOS_ACCESS_KEY: ${VOLCENGINE_TOS_ACCESS_KEY:-your-access-key}
  VOLCENGINE_TOS_BUCKET_NAME: ${VOLCENGINE_TOS_BUCKET_NAME:-your-bucket-name}
  VOLCENGINE_TOS_ENDPOINT: ${VOLCENGINE_TOS_ENDPOINT:-your-server-url}
  VOLCENGINE_TOS_REGION: ${VOLCENGINE_TOS_REGION:-your-region}
  VOLCENGINE_TOS_SECRET_KEY: ${VOLCENGINE_TOS_SECRET_KEY:-your-secret-key}
  WEAVIATE_API_KEY: ${WEAVIATE_API_KEY:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
  WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED: ${WEAVIATE_AUTHENTICATION_ANONYMOUS_ACCESS_ENABLED:-true}
  WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS: ${WEAVIATE_AUTHENTICATION_APIKEY_ALLOWED_KEYS:-WVF5YThaHlkYwhGUSmCRgsX3tD5ngdN8pkih}
  WEAVIATE_AUTHENTICATION_APIKEY_ENABLED: ${WEAVIATE_AUTHENTICATION_APIKEY_ENABLED:-true}
  WEAVIATE_AUTHENTICATION_APIKEY_USERS: ${WEAVIATE_AUTHENTICATION_APIKEY_USERS:-hello@dify.ai}
  WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED: ${WEAVIATE_AUTHORIZATION_ADMINLIST_ENABLED:-true}
  WEAVIATE_AUTHORIZATION_ADMINLIST_USERS: ${WEAVIATE_AUTHORIZATION_ADMINLIST_USERS:-hello@dify.ai}
  WEAVIATE_CLUSTER_HOSTNAME: ${WEAVIATE_CLUSTER_HOSTNAME:-node1}
  WEAVIATE_DEFAULT_VECTORIZER_MODULE: ${WEAVIATE_DEFAULT_VECTORIZER_MODULE:-none}
  WEAVIATE_ENDPOINT: ${WEAVIATE_ENDPOINT:-http://weaviate:8080}
  WEAVIATE_PERSISTENCE_DATA_PATH: ${WEAVIATE_PERSISTENCE_DATA_PATH:-/var/lib/weaviate}
  WEAVIATE_QUERY_DEFAULTS_LIMIT: ${WEAVIATE_QUERY_DEFAULTS_LIMIT:-25}
  WEB_API_CORS_ALLOW_ORIGINS: ${WEB_API_CORS_ALLOW_ORIGINS:-*}
  WEB_SENTRY_DSN: ${WEB_SENTRY_DSN:-}
  WORKFLOW_CALL_MAX_DEPTH: ${WORKFLOW_CALL_MAX_DEPTH:-5}
  WORKFLOW_FILE_UPLOAD_LIMIT: ${WORKFLOW_FILE_UPLOAD_LIMIT:-10}
  WORKFLOW_MAX_EXECUTION_STEPS: ${WORKFLOW_MAX_EXECUTION_STEPS:-500}
  WORKFLOW_MAX_EXECUTION_TIME: ${WORKFLOW_MAX_EXECUTION_TIME:-1200}
  WORKFLOW_PARALLEL_DEPTH_LIMIT: ${WORKFLOW_PARALLEL_DEPTH_LIMIT:-3}
