1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

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

View File

@@ -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