mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
fix postgres connecttion
This commit is contained in:
parent
4c352823d7
commit
09f804a1e0
@ -1,5 +1,5 @@
|
||||
CLUSTER_KEY=cluster-test
|
||||
DATABASE_PORT=5400
|
||||
DATABASE_PORT=5432
|
||||
DATABASE_USERNAME=postgres
|
||||
DATABASE_PASSWORD=postgres
|
||||
DATABASE_NAME=oneuptimedb
|
||||
|
@ -59,7 +59,6 @@ export default class Database {
|
||||
dataSourceOptions: DataSourceOptions
|
||||
): Promise<DataSource> {
|
||||
try {
|
||||
logger.info(JSON.stringify(dataSourceOptions));
|
||||
const PostgresDataSource: DataSource = new DataSource(
|
||||
dataSourceOptions
|
||||
);
|
||||
|
@ -2,7 +2,6 @@ import { createLogger, format, transports } from 'winston';
|
||||
|
||||
const { combine, timestamp, errors, colorize, cli } = format;
|
||||
|
||||
|
||||
const logger = createLogger({
|
||||
format: combine(
|
||||
colorize(),
|
||||
|
@ -332,6 +332,10 @@ services:
|
||||
- redis
|
||||
- postgres
|
||||
- mail
|
||||
links:
|
||||
- redis
|
||||
- postgres
|
||||
- mail
|
||||
volumes:
|
||||
- ./Identity:/usr/src/app
|
||||
# Use node modules of the container and not host system.
|
||||
|
Loading…
Reference in New Issue
Block a user