Prechádzať zdrojové kódy

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
Eric Pierce 2 rokov pred
rodič
commit
c52f038c76
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  1. 3 1
      docker/docker-entrypoint.sh

+ 3 - 1
docker/docker-entrypoint.sh

@@ -58,7 +58,9 @@ if [ -z "$REDIS_HOST" ]; then
   export REDIS_HOST="cache"
   export REDIS_HOST="cache"
 fi
 fi
 
 
-export REDIS_URL="redis://$REDIS_HOST"
+if [ -z "$REDIS_URL" ]; then
+  export REDIS_URL="redis://$REDIS_HOST"
+fi
 
 
 ##########
 ##########
 # SHARED #
 # SHARED #