Commit ec6f3827 authored by ncastejon's avatar ncastejon
Browse files

Change the host database

parent 28b5b38e
Pipeline #2392 passed with stages
in 20 seconds
......@@ -12,6 +12,7 @@ services:
POSTGRES_USER: user
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: postgres
POSTGRES_HOST: database-organizations
restart: unless-stopped
depends_on:
- database-organizations
......
......@@ -27,15 +27,11 @@ const ormConfig = {
username: 'user',
password: process.env.POSTGRES_PASSWORD,
database: 'postgres',
entities: ['src/**/**.entity{.ts,.js}'],
entities: [`${root}/**/**.entity{.ts,.js}`],
synchronize: false,
migrations: [`${root}/migrations/*.ts`],
cli: { migrationsDir: `${root}/migrations` },
logging: true,
};
if (process.env.MIGRATION) {
ormConfig.host = process.env.HOST_MIGRATION;
}
export = ormConfig;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment