skip to Main Content

docker-compose postgres dial error (dial tcp 172.23.0.3:5432: connect: connection refused)

I try to connect from backend container to postgres container. Here is my docker-compose file: version: "3.9" services: imgress-producer: build: context: ./producer dockerfile: Dockerfile.producer target: prod container_name: imgress-producer ports: - 8080:8080 environment: - POSTGRES_USER=${POSTGRES_USER} - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} - POSTGRES_DB=${POSTGRES_DB} - DATABASE_HOST=${DATABASE_HOST}…

VIEW QUESTION
Back To Top
Search