mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 20:29:02 +08:00
fix: handle redis authentication for healthcheck command (#10907)
This commit is contained in:
parent
99b0369f1b
commit
b42b333a72
@ -36,7 +36,7 @@ Welcome to the new `docker` directory for deploying Dify using Docker Compose. T
|
|||||||
- Navigate to the `docker` directory.
|
- 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).
|
- 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**:
|
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 Users
|
### Migration for Existing Users
|
||||||
|
|
||||||
|
@ -29,11 +29,13 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:6-alpine
|
image: redis:6-alpine
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the redis data directory to the container.
|
# Mount the redis data directory to the container.
|
||||||
- ${REDIS_HOST_VOLUME:-./volumes/redis/data}:/data
|
- ${REDIS_HOST_VOLUME:-./volumes/redis/data}:/data
|
||||||
# Set the redis password when startup redis server.
|
# Set the redis password when startup redis server.
|
||||||
command: redis-server --requirepass difyai123456
|
command: redis-server --requirepass ${REDIS_PASSWORD:-difyai123456}
|
||||||
ports:
|
ports:
|
||||||
- "${EXPOSE_REDIS_PORT:-6379}:6379"
|
- "${EXPOSE_REDIS_PORT:-6379}:6379"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
|
@ -366,6 +366,8 @@ services:
|
|||||||
redis:
|
redis:
|
||||||
image: redis:6-alpine
|
image: redis:6-alpine
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
REDISCLI_AUTH: ${REDIS_PASSWORD:-difyai123456}
|
||||||
volumes:
|
volumes:
|
||||||
# Mount the redis data directory to the container.
|
# Mount the redis data directory to the container.
|
||||||
- ./volumes/redis/data:/data
|
- ./volumes/redis/data:/data
|
||||||
|
@ -42,11 +42,13 @@ POSTGRES_EFFECTIVE_CACHE_SIZE=4096MB
|
|||||||
|
|
||||||
# -----------------------------
|
# -----------------------------
|
||||||
# Environment Variables for redis Service
|
# 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
|
# Environment Variables for sandbox Service
|
||||||
|
# ------------------------------
|
||||||
SANDBOX_API_KEY=dify-sandbox
|
SANDBOX_API_KEY=dify-sandbox
|
||||||
SANDBOX_GIN_MODE=release
|
SANDBOX_GIN_MODE=release
|
||||||
SANDBOX_WORKER_TIMEOUT=15
|
SANDBOX_WORKER_TIMEOUT=15
|
||||||
@ -54,7 +56,6 @@ SANDBOX_ENABLE_NETWORK=true
|
|||||||
SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128
|
SANDBOX_HTTP_PROXY=http://ssrf_proxy:3128
|
||||||
SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128
|
SANDBOX_HTTPS_PROXY=http://ssrf_proxy:3128
|
||||||
SANDBOX_PORT=8194
|
SANDBOX_PORT=8194
|
||||||
# ------------------------------
|
|
||||||
|
|
||||||
# ------------------------------
|
# ------------------------------
|
||||||
# Environment Variables for ssrf_proxy Service
|
# Environment Variables for ssrf_proxy Service
|
||||||
|
Loading…
x
Reference in New Issue
Block a user