import { TypeOrmModuleOptions } from '@nestjs/typeorm'; export const databaseConfig: TypeOrmModuleOptions = { type: 'postgres', host: process.env.DB_HOSTNAME || 'immich_postgres', port: 5432, username: process.env.DB_USERNAME, password: process.env.DB_PASSWORD, database: process.env.DB_DATABASE_NAME, entities: [__dirname + '/../**/*.entity.{js,ts}'], synchronize: false, migrations: [__dirname + '/../migration/*.js'], cli: { migrationsDir: __dirname + '/../migration', }, migrationsRun: true, };