fix: update Redis healthcheck command to include authentication

This commit is contained in:
WhiteX 2025-06-12 14:51:12 +03:00 committed by rzmk
parent e7e5e300f2
commit 146c554c1f

View file

@ -67,15 +67,12 @@ services:
image: redis:7.2.3
command: redis-server --requirepass ${REDIS_PASSWORD}
restart: always
# ports:
# - "6379:6379"
volumes:
- redis-data:/data
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD}
healthcheck:
test: ["CMD", "redis-cli", "ping"]
test: ["CMD", "redis-cli", "--no-auth-warning", "auth", "${REDIS_PASSWORD}", "ping"]
interval: 5s
timeout: 4s
retries: 5