fix: Adding support for redis databases with passwords (#468)
Redis databases with passwords can be supported by specifying the environment parameter REDIS_URL=redis://:$REDIS_PASSWORD@redis:6379 Without this change the redis URL will always be hardcoded without support for a password
This commit is contained in:
parent
b12ba98a5c
commit
c52f038c76
1 changed files with 3 additions and 1 deletions
|
@ -58,7 +58,9 @@ if [ -z "$REDIS_HOST" ]; then
|
|||
export REDIS_HOST="cache"
|
||||
fi
|
||||
|
||||
export REDIS_URL="redis://$REDIS_HOST"
|
||||
if [ -z "$REDIS_URL" ]; then
|
||||
export REDIS_URL="redis://$REDIS_HOST"
|
||||
fi
|
||||
|
||||
##########
|
||||
# SHARED #
|
||||
|
|
Loading…
Reference in a new issue