Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile #155

Open
Hyjaz opened this issue Oct 10, 2017 · 2 comments
Open

Dockerfile #155

Hyjaz opened this issue Oct 10, 2017 · 2 comments

Comments

@Hyjaz
Copy link

Hyjaz commented Oct 10, 2017

When running the dockerfile I am not able to access the react app running inside the container.

Anybody had the same issue?

This is simply a question.

@pozsi
Copy link

pozsi commented Nov 7, 2017

I solved this by modifing config/main.js:5 to read host: process.env.HOST || '0.0.0.0' (instead of host: process.env.HOST || 'localhost') so that the internal webserver listens on any host.

When you try to acces it on the host as http://localhost:8889/ the container sees that as a request comming from whatever the IP of the host is as seen from the container. For me it's 172.17.0.1 but I'm pretty sure that could change depending on your docker network setup, so I just went with 0.0.0.0.

Not sure if this is the proper solution, but it worked for me.

@dinesh-matta-mpf
Copy link

I was also looking for a solution for this problem. @pozsi you solution worked for me. Thanks !!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants