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

From: Torsten Krah <krah(dot)tm(at)gmail(dot)com>
To: 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:31:56
Message-ID: ee1034d55a1b7ccb2c0890d2a1f9e8111437f20a.camel@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2024-12-02 11:49:13 Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Previous Message Alexander Farber 2024-12-02 11:24:21 Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20