How you would configure elixir app with ecto to connect with postgres on host machine?

That works!

config :echo, Echo.Repo,
  database: "echo_db",
  username: "postgres",
  password: "postgres",
  hostname: "host.docker.internal"

Thank you, but now i can’t start my app localy on machine. How can i split configuration of ecto for docker, and for local using?