Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: handle redis authentication for healthcheck command (#10907)
shisaru292b42b333a72a4
diff --git a/docker/README.md b/docker/README.mdindex 7ce3f9bd751..c3cd1f9e3cc 100644--- a/docker/README.md+++ b/docker/README.md@@ -36,7 +36,7 @@ Welcome to the new `docker` directory for deploying Dify using Docker Compose. T- Navigate to the `docker` directory.- Ensure the `middleware.env` file is created by running `cp middleware.env.example middleware.env` (refer to the `middleware.env.example` file).2. **Running Middleware Services**:- - Execute `docker-compose -f docker-compose.middleware.yaml up -d` to start the middleware services.+ - Execute `docker-compose -f docker-compose.middleware.yaml up --env-file middleware.env -d` to start the middleware services.### Migration for Existing Usersdiff --git a/docker/docker-compose.middleware.yaml b/docker/docker-compose.middleware.yamlindex 2eea273e72d..11f53021972 100644--- a/docker/docker-compose.middleware.yaml+++ b/docker/docker-compose.middleware.yaml@@ -29,11 +29,13 @@ services:redis:image: redis:6-alpinerestart: always+ environment:+ REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}volumes:# Mount the redis data directory to the container.- ${REDIS_HOST_VOLUME:-./volumes/redis/data}:/data# Set the redis password when startup redis server.- command: redis-server --requirepass difyai123456+ command: redis-server --requirepass ${REDIS_PASSWORD:-difyai123456}ports:- "${EXPOSE_REDIS_PORT:-6379}:6379"healthcheck:diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yamlindex 06b04d90b6c..b47573bfc84 100644--- a/docker/docker-compose.yaml+++ b/docker/docker-compose.yaml@@ -366,6 +366,8 @@ services:redis:image: redis:6-alpinerestart: always+ environment:+ REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}volumes:# Mount the redis data directory to the container.- ./volumes/redis/data:/datadiff --git a/docker/middleware.env.example b/docker/middleware.env.exampleindex 17ac8195277..c4ce9f0114e 100644--- a/docker/middleware.env.example+++ b/docker/middleware.env.example@@ -42,11 +42,13 @@ POSTGRES_EFFECTIVE_CACHE_SIZE=4096MB# -----------------------------# Environment Variables for redis Service-REDIS_HOST_VOLUME=./volumes/redis/data# -----------------------------+REDIS_HOST_VOLUME=./volumes/redis/data+REDIS_PASSWORD=difyai123456# ------------------------------# Environment Variables for sandbox Service+# ------------------------------SANDBOX_API_KEY=dify-sandboxSANDBOX_GIN_MODE=releaseSANDBOX_WORKER_TIMEOUT=15@@ -54,7 +56,6 @@ SANDBOX_ENABLE_NETWORK=trueSANDBOX_HTTP_PROXY=http://ssrf_proxy:3128SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128SANDBOX_PORT=8194-# ------------------------------# ------------------------------# Environment Variables for ssrf_proxy Service