moved host and port to env

This commit is contained in:
Chris Patterson
2019-08-15 14:41:02 -04:00
parent 2b428d3828
commit 307c70fb0e
2 changed files with 11 additions and 3 deletions

View File

@@ -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'