mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00: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:
parent
87b15c60c0
commit
a44043a4e5
4 changed files with 17 additions and 5 deletions
|
|
@ -2,7 +2,7 @@ import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
|||
|
||||
export const databaseConfig: TypeOrmModuleOptions = {
|
||||
type: 'postgres',
|
||||
host: 'immich_postgres',
|
||||
host: process.env.DB_HOSTNAME || 'immich_postgres',
|
||||
port: 5432,
|
||||
username: process.env.DB_USERNAME,
|
||||
password: process.env.DB_PASSWORD,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue