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

From Alexander Farber
Subject Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Date
Msg-id CAADeyWjifzhvmy+b35uEV-UV_k3vOebvhpkZWr8kVooJOSsLYw@mail.gmail.com
Whole thread Raw
In response to Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20  (Torsten Krah <krah.tm@gmail.com>)
List pgsql-general
Thank you Torsten,

On Mon, Dec 2, 2024 at 12:32 PM Torsten Krah <krah.tm@gmail.com> wrote:
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


I will try that option too!
 

pgsql-general by date:

Previous
From: Torsten Krah
Date:
Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Next
From: Jeremy Smith
Date:
Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20