fix: handle redis authentication for healthcheck command (#10907)

This commit is contained in:
shisaru292
2024-11-20 20:10:51 +08:00
committed by GitHub
parent 99b0369f1b
commit b42b333a72
4 changed files with 9 additions and 4 deletions

View File

@@ -29,11 +29,13 @@ services:
redis:
image: redis:6-alpine
restart: 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: