Update start.sh (#3282)

Adding ability to use docker secrets file for REDIS_PASSWORD
This commit is contained in:
abhi-chakrab 2023-07-15 09:30:52 -06:00 committed by GitHub
parent ab85dd9fa8
commit ed594c1987
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,4 +20,9 @@ if [ "$DB_PASSWORD_FILE" ]; then
unset DB_PASSWORD_FILE
fi
if [ "$REDIS_PASSWORD_FILE" ]; then
export REDIS_PASSWORD=$(cat $REDIS_PASSWORD_FILE)
unset REDIS_PASSWORD_FILE
fi
exec node dist/main $1