fix postgres connecttion

This commit is contained in:
Simon Larsen 2022-05-25 22:44:54 +01:00
parent 4c352823d7
commit 09f804a1e0
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE
4 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,5 @@
CLUSTER_KEY=cluster-test CLUSTER_KEY=cluster-test
DATABASE_PORT=5400 DATABASE_PORT=5432
DATABASE_USERNAME=postgres DATABASE_USERNAME=postgres
DATABASE_PASSWORD=postgres DATABASE_PASSWORD=postgres
DATABASE_NAME=oneuptimedb DATABASE_NAME=oneuptimedb

View File

@ -59,7 +59,6 @@ export default class Database {
dataSourceOptions: DataSourceOptions dataSourceOptions: DataSourceOptions
): Promise<DataSource> { ): Promise<DataSource> {
try { try {
logger.info(JSON.stringify(dataSourceOptions));
const PostgresDataSource: DataSource = new DataSource( const PostgresDataSource: DataSource = new DataSource(
dataSourceOptions dataSourceOptions
); );

View File

@ -2,7 +2,6 @@ import { createLogger, format, transports } from 'winston';
const { combine, timestamp, errors, colorize, cli } = format; const { combine, timestamp, errors, colorize, cli } = format;
const logger = createLogger({ const logger = createLogger({
format: combine( format: combine(
colorize(), colorize(),

View File

@ -332,6 +332,10 @@ services:
- redis - redis
- postgres - postgres
- mail - mail
links:
- redis
- postgres
- mail
volumes: volumes:
- ./Identity:/usr/src/app - ./Identity:/usr/src/app
# Use node modules of the container and not host system. # Use node modules of the container and not host system.