Docker Community Forums

Share and learn in the Docker community.

Unable to connect confluence container with postgresql database container using docker-compose

(Ankit105) #1


I have a docker compose file that has three services - confluence, postgresql and proxy and is supposed to start all the containers and also LINK confluence container with postgresql container. After running ‘docker-compose up -d’ all containers are up and running as per ‘docker-compose ps’. I go to browser and set up confluence and database During database set up I am see the following error message:

org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

I have docker version ‘1.11.2’ and docker compose version ‘1.71’ running on my linux red hat 7.2 server.

Any ideas what I am missing here?