ECONNREFUSED for Postgres on nodeJS with dockers
Your DATABASE_URL refers to 127.0.0.1, which is the loopback adapter (more here). This means “connect to myself”. When running both applications (without using Docker) on the same host, they are both addressable on the same adapter (also known as localhost). When running both applications in containers they are not both on localhost as before. Instead … Read more