# ------------------------------------------------------------------ # Minimal environment template for Docker Compose deployments. # # Run ./init-env.sh, or .\init-env.ps1 on Windows, to create .env # and generate SECRET_KEY. Use .env.all as the full reference for # advanced and service-specific settings. # ------------------------------------------------------------------ # SECRET_KEY is generated into .env by init-env.sh / init-env.ps1. # Public URLs used when Dify generates links. Change these together when # exposing Dify under another hostname, IP address, or port. CONSOLE_WEB_URL=http://localhost SERVICE_API_URL=http://localhost APP_WEB_URL=http://localhost FILES_URL=http://localhost INTERNAL_FILES_URL=http://api:5001 TRIGGER_URL=http://localhost ENDPOINT_URL_TEMPLATE=http://localhost/e/{hook_id} NEXT_PUBLIC_SOCKET_URL=ws://localhost EXPOSE_PLUGIN_DEBUGGING_HOST=localhost EXPOSE_PLUGIN_DEBUGGING_PORT=5003 # Built-in metadata database defaults. DB_TYPE=postgresql DB_USERNAME=postgres DB_PASSWORD=difyai123456 DB_HOST=db_postgres DB_PORT=5432 DB_DATABASE=dify # Built-in Redis defaults. REDIS_HOST=redis REDIS_PORT=6379 REDIS_PASSWORD=difyai123456 # Default file storage. STORAGE_TYPE=opendal OPENDAL_SCHEME=fs OPENDAL_FS_ROOT=storage # Default vector database. VECTOR_STORE=weaviate # Internal service authentication. Paired values must match. PLUGIN_DAEMON_KEY=lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi PLUGIN_DIFY_INNER_API_KEY=QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1 # Host ports. EXPOSE_NGINX_PORT=80 EXPOSE_NGINX_SSL_PORT=443 # Docker Compose profiles for bundled services. COMPOSE_PROFILES=${VECTOR_STORE:-weaviate},${DB_TYPE:-postgresql}