Setting up Elixir with Dockerized PostgreSQL

If your elixir application is not in container, then the only way is to expose the port and connect on localhost, just as it was mentioned previously by others.