chore: for redis, use service name as the default (#9109)

chore: use service name as default redis hostname
This commit is contained in:
Jason Rasmussen 2024-04-27 11:04:23 -04:00 committed by GitHub
parent 5a49de5592
commit 0d8a04b43c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 10 additions and 13 deletions

View file

@ -52,7 +52,7 @@ function parseRedisConfig(): RedisOptions {
}
}
return {
host: process.env.REDIS_HOSTNAME || 'immich_redis',
host: process.env.REDIS_HOSTNAME || 'redis',
port: Number.parseInt(process.env.REDIS_PORT || '6379'),
db: Number.parseInt(process.env.REDIS_DBINDEX || '0'),
username: process.env.REDIS_USERNAME || undefined,