mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: update Redis healthcheck command to include authentication
This commit is contained in:
parent
e7e5e300f2
commit
146c554c1f
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue