public inbox for [email protected]
help / color / mirror / Atom feedFrom: Jeremy Smith <[email protected]>
To: Alexander Farber <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
Date: Mon, 2 Dec 2024 08:25:13 -0500
Message-ID: <CAM8SmLWFLrtthWhqzEnDJ_tnVS14gp=kgacyW2+aZqoYDsjFNg@mail.gmail.com> (raw)
In-Reply-To: <CAADeyWiW+Uz5z_RJrB=dhWoZAOngQ2dHQt+2UOGJiEv6pbcDCA@mail.gmail.com>
References: <CAADeyWiW+Uz5z_RJrB=dhWoZAOngQ2dHQt+2UOGJiEv6pbcDCA@mail.gmail.com>
>
>
> Is anybody able spotting, what am I doing wrong here? Thank you
>
Unless I'm mistaken, it seems like you are trying to run jetty and postgres
in the same container. You should really use two containers and run them
both with docker compose. Docker is very much designed to run a single
service. This should also greatly simplify your Dockerfile - you could
probably just use the vanilla postgres image for the postgres container.
Here's some info on how to achieve this:
https://www.docker.com/blog/how-to-use-the-postgres-docker-official-image/#Using-Docker-Compose
view thread (12+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected], [email protected]
Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20
In-Reply-To: <CAM8SmLWFLrtthWhqzEnDJ_tnVS14gp=kgacyW2+aZqoYDsjFNg@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox