У меня есть сервер CentOS 7, на котором по отдельности работают postgres (порт 5432) и докер.
В настоящее время я пытаюсь получить доступ к базе данных postgres из моего контейнера докера. Но я получаю следующую ошибку:
at Connection.parseE (/usr/app/node_modules/pg/lib/connection.js:604:11)
at Connection.parseMessage (/usr/app/node_modules/pg/lib/connection.js:401:19)
at Socket.<anonymous> (/usr/app/node_modules/pg/lib/connection.js:121:22)
at Socket.emit (events.js:198:13)
at addChunk (_stream_readable.js:288:12)
at readableAddChunk (_stream_readable.js:269:11)
at Socket.Readable.push (_stream_readable.js:224:10)
at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
name: 'error',
length: 161,
severity: 'FATAL',
code: '28000',
detail: undefined,
hint: undefined,
position: undefined,
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'auth.c',
line: '489',
routine: 'ClientAuthentication' }```
I have change pg_hba.conf of my host postgres application that too didn't solve the issue.
Any help will be appreciated.