Docker Compose cannot connect to database
问题 I'm using nestjs for my backend and using typeorm as ORM. I tried to define my database and my application in an docker-compose file. If I'm running my database as a container and my application from my local machine it works well. My program connects and creates the tables etc. But if I try to connect the database from within my container or to start the container with docker-compose up it fails. Always get an ECONNREFUSED Error. Where is my mistake ? docker-compose.yml version: '3.1'