mirror of
https://github.com/immich-app/immich.git
synced 2025-12-26 17:25:00 +03:00
* Refactor docker-compose to its own folder * Added FastAPI development environment * Added support for GPU in docker file * Added image classification * creating endpoint for smart Image info * added logo with white background on ios * Added endpoint and trigger for image tagging * Classify image and save into database * Update readme
24 lines
629 B
TypeScript
24 lines
629 B
TypeScript
import { TypeOrmModuleOptions } from '@nestjs/typeorm';
|
|
// import dotenv from 'dotenv';
|
|
|
|
// const result = dotenv.config();
|
|
|
|
// if (result.error) {
|
|
// console.log(result.error);
|
|
// }
|
|
export const databaseConfig: TypeOrmModuleOptions = {
|
|
type: 'postgres',
|
|
host: '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,
|
|
};
|