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
|
image: redis:7.2.3
|
||||||
command: redis-server --requirepass ${REDIS_PASSWORD}
|
command: redis-server --requirepass ${REDIS_PASSWORD}
|
||||||
restart: always
|
restart: always
|
||||||
# ports:
|
|
||||||
# - "6379:6379"
|
|
||||||
volumes:
|
volumes:
|
||||||
- redis-data:/data
|
- redis-data:/data
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
- REDIS_PASSWORD=${REDIS_PASSWORD}
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "ping"]
|
test: ["CMD", "redis-cli", "--no-auth-warning", "auth", "${REDIS_PASSWORD}", "ping"]
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 4s
|
timeout: 4s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue