Update start.sh (#3282)
Adding ability to use docker secrets file for REDIS_PASSWORD
This commit is contained in:
parent
ab85dd9fa8
commit
ed594c1987
1 changed files with 5 additions and 0 deletions
|
@ -20,4 +20,9 @@ if [ "$DB_PASSWORD_FILE" ]; then
|
||||||
unset DB_PASSWORD_FILE
|
unset DB_PASSWORD_FILE
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$REDIS_PASSWORD_FILE" ]; then
|
||||||
|
export REDIS_PASSWORD=$(cat $REDIS_PASSWORD_FILE)
|
||||||
|
unset REDIS_PASSWORD_FILE
|
||||||
|
fi
|
||||||
|
|
||||||
exec node dist/main $1
|
exec node dist/main $1
|
||||||
|
|
Loading…
Reference in a new issue