title: Nestjs with postgres and redis on docker connection refused
body: <p>I've dockerize nestjs app with postgres and redis.
  How can I fix this issue?
  Postgres and redis are refusing tcp connections.
  This is docker-compose.yml and console result.
  I am using typeorm and @nestjs/bull for redis.</p>
  <p><a href="https://i.stack.imgur.com/RwD7Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RwD7Z.png" alt="docker-compose.yml" /></a>
  <a href="https://i.stack.imgur.com/to6sE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/to6sE.png" alt="docker-compose.yml-2" /></a></p>
  <p><a href="https://i.stack.imgur.com/WGIBc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WGIBc.png" alt="result" /></a></p>
  <p>Hope much help.
  Thanks</p>