Search Postgresql Archives

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




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



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux