fix(docker-compose): Update Redis command and healthcheck to use actual password variable
This commit is contained in:
parent
3ce92b7394
commit
ca4c3e92f0
@ -31,11 +31,11 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- REDIS_PASSWORD=${AUTHELIA_REDIS_PASSWORD}
|
- REDIS_PASSWORD=${AUTHELIA_REDIS_PASSWORD}
|
||||||
command: ["redis-server", "--requirepass", "$$REDIS_PASSWORD"] # Use $$ to escape $ for compose
|
command: ["redis-server", "--requirepass", "${AUTHELIA_REDIS_PASSWORD}"] # Use actual password variable
|
||||||
volumes:
|
volumes:
|
||||||
- ${CONFIG_ROOT:-.}/redis:/data:Z
|
- ${CONFIG_ROOT:-.}/redis:/data:Z
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "redis-cli", "-a", "$$REDIS_PASSWORD", "ping"] # Use $$ to escape $ for compose
|
test: ["CMD", "redis-cli", "-a", "${AUTHELIA_REDIS_PASSWORD}", "ping"] # Use actual password variable
|
||||||
interval: 5s
|
interval: 5s
|
||||||
timeout: 3s
|
timeout: 3s
|
||||||
retries: 5
|
retries: 5
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user