If you are using an already existing postgres, then why are you running
postgres service in compose?

If that's *not* the database you are connecting to, then you should remove
it from your compose file. (conversely if you *are* trying to use compose
postgres, then we might have some configuration suggestions to offer)
---
Separately, on mac compose, for the container to access host i think you
might need to add svc.localhost or something like that... there are SO
posts on this topic eg
https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mac

Reply via email to