Closed Arsur closed 5 years ago
I had the same problem. Just set in the .env file this: ADDR=0.0.0.0 PORT=3000 HOST=http://0.0.0.0:$PORT
@Arsur can you share the output of curl -v http://localhost:3000/
is?
Looks like running buffalo dev
command binds to 127.0.0.1 by default.
which cannot be accessed outside the container.
to fix it you can bind to 0.0.0.0 .
you can bind to 0.0.0.0 by adding ADDR=0.0.0.0
before the buffalo dev
command.
ADDR=0.0.0.0 buffalo dev
I tried this one inside docker-compose and had the same issue which can be solved by using the ADDR=0.0.0.0 variable suggested here.
thanks @KrasimirDzhagarov @Shivakishore14 !
Closing the issue since a solution was found. It can be nice to add this in the docs, though. :)
Description
I just tried to run the instructions for buffalo within docker and its simply not working. This is my first contact to buffalo so i realy dont know whats not working.
Steps to Reproduce the Problem
I just used this blogpost https://blog.gobuffalo.io/buffalo-docker-images-ff3938dcaa53 which is also linked to the guide at the doc pages.
Expected Behavior
see “Welcome to Buffalo” page at http://localhost:3000
Actual Behavior
i run trough the guide up to the last point
My Browser just tells me the connection was reset. If i check the port with netstat in my ubuntu its open.
Info