moved host and port to env
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const { Client } = require('pg')
|
||||
const { Client } = require('pg');
|
||||
|
||||
const pgclient = new Client({
|
||||
host: 'postgres',
|
||||
port: 5432,
|
||||
host: process.env.POSTGRES_HOST,
|
||||
port: process.env.POSTGRES_PORT,
|
||||
user: 'postgres',
|
||||
password: 'postgres',
|
||||
database: 'postgres'
|
||||
|
||||
Reference in New Issue
Block a user