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

Add ability to pass redis hostname as env var (#174)

* Add ability to pass redis hostname as env var

* Read postgres host from env var in microservices

* Update .env.example with postgres and redis hostname vars
This commit is contained in:
Pavle Portic
2022-05-24 00:23:02 +02:00
committed by GitHub
parent 87b15c60c0
commit a44043a4e5
4 changed files with 17 additions and 5 deletions

View File

@ -39,7 +39,7 @@ import { ScheduleTasksModule } from './modules/schedule-tasks/schedule-tasks.mod
BullModule.forRootAsync({
useFactory: async () => ({
redis: {
host: 'immich_redis',
host: process.env.REDIS_HOSTNAME || 'immich_redis',
port: 6379,
},
}),