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

I can't the application when running in the context of docker #20

Closed
MichaelAng opened this issue Sep 22, 2016 · 1 comment
Closed

I can't the application when running in the context of docker #20

MichaelAng opened this issue Sep 22, 2016 · 1 comment

Comments

@MichaelAng
Copy link
Owner

When I start up a webpack-dev-server on the host machine I am able to see the application.
But when I do this through docker I get a This site can’t be reached.

Docker compose

...

  client:
    container_name: client
    build: ./client
    ports:
      - "8080:8080"

...

command to start webpack-dev-server

webpack-dev-server --inline --progress --port 8080
@MichaelAng
Copy link
Owner Author

Solved it.

I needed to add --host 0.0.0.0 to the webpack-de-server command

Full command

webpack-dev-server --host 0.0.0.0 --inline --progress --port 8080

Source:
webpack/webpack-dev-server#143 (comment)

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

No branches or pull requests

1 participant