DEV Community

Discussion on: Development environment for Elixir + Phoenix with Docker and Docker-compose

Collapse
escribapetrus profile image
P. Schreiber ๐Ÿง™๐Ÿปโ€โ™‚๏ธ๐Ÿ”ฎ๐Ÿ

Is this working? I have been trying for days and cannot access the localhost by any means. The weird things are:

  1. The web and db containers build correctly. One connects to the other, creates mutations and all, and even says "Running DeplWeb.Endpoint with cowboy 2.9.0 at 127.0.0.1:4000 (http)"
  2. I managed to access the localhost of docker containers running Django and Express with no problems. Phoenix, no way.
Collapse
hlappa profile image
Aleksi Holappa Author

Seems that you already solved the problem. I updated the article accordingly. :)

Collapse
skelet9 profile image
Sergi

Change the 127, 0, 0, 1 to 0, 0, 0, 0 in the config/dev.exs file

Collapse
escribapetrus profile image
P. Schreiber ๐Ÿง™๐Ÿปโ€โ™‚๏ธ๐Ÿ”ฎ๐Ÿ

You sir are a real hero. Thanks.