diff --git a/features/attributes/backend-api/src/app.module.ts b/features/attributes/backend-api/src/app.module.ts index 98c5f00d8..03e006e81 100755 --- a/features/attributes/backend-api/src/app.module.ts +++ b/features/attributes/backend-api/src/app.module.ts @@ -52,13 +52,15 @@ import { FilterSemanticOverride } from './entities/filter-semantic-override.enti return { type: 'postgres', host: 'localhost', - port: 25432, + port: parseInt(config.get('DATABASE_POSTGRES_PORT', '25432'), 10), username: config.get('DATABASE_POSTGRES_USER', 'lilith'), password: config.get('DATABASE_POSTGRES_PASSWORD', 'lilith'), database: config.get('DATABASE_POSTGRES_NAME', 'lilith'), autoLoadEntities: true, synchronize: config.get('NODE_ENV') !== 'production', logging: config.get('NODE_ENV') !== 'production', + retryAttempts: 10, + retryDelay: 2000, } }, }),