Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tI6Qe-00C9kj-Fj for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 13:25:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tI6Qb-00HKQt-W1 for pgsql-general@arkaria.postgresql.org; Mon, 02 Dec 2024 13:25:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tI6Qb-00HKQl-HD for pgsql-general@lists.postgresql.org; Mon, 02 Dec 2024 13:25:30 +0000 Received: from mail-qv1-xf29.google.com ([2607:f8b0:4864:20::f29]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tI6QY-000ebK-HM for pgsql-general@postgresql.org; Mon, 02 Dec 2024 13:25:29 +0000 Received: by mail-qv1-xf29.google.com with SMTP id 6a1803df08f44-6d88d3d1eb6so21732736d6.0 for ; Mon, 02 Dec 2024 05:25:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=musicsmith-net.20230601.gappssmtp.com; s=20230601; t=1733145924; x=1733750724; darn=postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=mxqXiXCoz141oZJtJsJBRzKznAEZRmDE08T0DL5AUG0=; b=hIKUvGKC8qgPH0YQYzgIdckyjK+i6BKjF7VErpZ2AO+ium3Idpp1MCLpwaVBhYuKjM P+/AXAuJkdPSGgt9vdqYUDi6JbhCxXCGGLBRAXDBKmM9hiyCxtXjzMQDtOKnXoz14xs3 Rgq/wlOcc4IIfxj971fswVYqaZmO83AoHSPs6yr/h720gba0ENw0W3faQUo6ig3GNX5x eLTkMBAn2TE6M1CkBdFMTMwhzxu719mmUVLqvAXmv58aHyPKjSFckoewWw5BnReA9144 R8iiS9ZgHv+k2GRe5DPpw2/qh1AW31VXoDJq+WFyTnF4RrG1xt9cIYdlK9uNfTbrD7jM UUFQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733145924; x=1733750724; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=mxqXiXCoz141oZJtJsJBRzKznAEZRmDE08T0DL5AUG0=; b=Y3B1wJOLBPh1FfskKjBxovF1ooiJIEM1QAwPhpOt2xHaedKNwordIus/EpXmaAlMuL G57DYaOmYt6Z4M/wP07WMcYVF7J1K3QfKcPAFGdpiAz0kjKIb80ox8NxK5jon2i7teRu CPnc3SfELC9EIxT7qsnshH9SDOsUD5bkU1oabcEwsM6mPJkBIV4kfCdLQtCoYxcpeoXI 8Wys0diPjHupDEO4iyXqoojWYcRTvHr216/KO7ekHO8rckCLnTed0XI5BPCVdjY3KJiL 5IUvhP5pPQ9NjEdh7nCa7OVG35j3BbeLDByYGyLEpbTpUva0BF/b2GQCt+D+HLRJo1uA Vpfw== X-Gm-Message-State: AOJu0YxNkGd7aRV4pkU83OCSQEznOKClAAOHVk9ZYJhQ+KcYoZwazByW laY9JbRIV3IpgkZ2TxTpdEMWOCEie7ldybvlJM8ep6oav+ROQ37CLmivZpDY+C76HAz9fci2Nyw adLROGOIQmQskgCvb7w0JYxyzfu+a+bb+wXVS X-Gm-Gg: ASbGncsT3ZDj0dxjr0jwGrA1+XcCm73tvRkcNtsDG7hF+OXu9i6HnTMndYXjCPdol0r xO4QBxuhOAiSN44yD6+Ez6D+Uvo+svQ== X-Google-Smtp-Source: AGHT+IEoJ1SQugcMDLVsyWsfqdwSOoa5ilum/HLikzN9hyjRWmTyl1kHLVumpAyT0scNT0ckTlpzKPmI9+intmzty0c= X-Received: by 2002:a05:6214:2527:b0:6d8:95c9:af39 with SMTP id 6a1803df08f44-6d895c9b249mr140189966d6.0.1733145924100; Mon, 02 Dec 2024 05:25:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jeremy Smith Date: Mon, 2 Dec 2024 08:25:13 -0500 Message-ID: Subject: Re: Connection to 127.0.0.1 refused in a Dockerfile based on postgres:17-alpine3.20 To: Alexander Farber Cc: pgsql-general Content-Type: multipart/alternative; boundary="00000000000026897c0628497b63" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000026897c0628497b63 Content-Type: text/plain; charset="UTF-8" > > > 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 --00000000000026897c0628497b63 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<= div dir=3D"ltr">

Is anybody able spotting, what a= m I doing wrong here? Thank you
=


Unless I'm mistaken, it seems like you are trying to run jet= ty and postgres in the same container.=C2=A0 You should really use two cont= ainers and run them both with docker compose.=C2=A0 Docker is very much des= igned to run a single service.=C2=A0 This should also greatly simplify your= Dockerfile - you could probably just use the vanilla postgres image for th= e postgres container.=C2=A0 Here's some info on how to achieve this:



=
--00000000000026897c0628497b63--