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
|
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
|
||||||
|
@ -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
|
||||||
);
|
);
|
||||||
|
@ -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(),
|
||||||
|
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user