I have a docker container with web rails app. Also I have external database on my osx machine. If I exec on osx:
psql "postgres://postgres:[email protected]:5432/movies_development"
I run okay
If I run it in container I'll receive
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Have any ideas how to connect to external database from container? thanks