Skip to content

Commit 5e81cc2

Browse files
CopilotKaniska244
andcommitted
fix: update javascript-node-postgres test db host from localhost to db
Update the PostgreSQL connection host in test/javascript-node-postgres/server.js from 'localhost' to 'db' to match the bridge network configuration change in docker-compose.yml. Co-authored-by: Kaniska244 <[email protected]>
1 parent d979901 commit 5e81cc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/javascript-node-postgres/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const promise = require('bluebird');
1212
const PORT = 3000;
1313
const HOST = '0.0.0.0';
1414
const cn = {
15-
host: 'localhost', // host of db container
15+
host: 'db', // host of db container
1616
port: 5432, // 5432 is the default;
1717
database: 'postgres', // database name
1818
user: 'postgres', // database user name

0 commit comments

Comments
 (0)