Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20

Torsten Krah <krah.tm@gmail.com>

From: Torsten Krah <krah.tm@gmail.com>
To: pgsql-general@lists.postgresql.org
Date: 2024-12-02T11:31:56Z
Lists: pgsql-general
Am Sonntag, dem 01.12.2024 um 21:59 +0100 schrieb Alexander Farber:
> But I am yet not sure how to enable listening at localhost again

Instead of using a TCP/IP connection, why not use the unix socket to
connect to your database [1]?

[1] https://jdbc.postgresql.org/documentation/use/#unix-sockets