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

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To:
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Date: 2024-12-02 11:49:13
Message-ID: CAADeyWjifzhvmy+b35uEV-UV_k3vOebvhpkZWr8kVooJOSsLYw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you Torsten,

On Mon, Dec 2, 2024 at 12:32 PM Torsten Krah <krah(dot)tm(at)gmail(dot)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!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeremy Smith 2024-12-02 13:25:13 Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Previous Message Torsten Krah 2024-12-02 11:31:56 Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20