Skip to content

Webpack DevServer configuration for Docker #1716

@sdzyba

Description

@sdzyba

Version

3.0.0-rc.3

Reproduction link

https://codesandbox.io/s/vue

Steps to reproduce

Generate a basic project using vue-cli.
Run npm run serve in docker container.

What is expected?

App works and it's accessible, hot reload works

What is actually happening?

App works and it's accessible, hot reload doesn't work


The issue is that it automatically starts the devserver using docker container's internal IP:

app_1  |   App running at:
app_1  |   - Local:   http://localhost:8080/
app_1  |   - Network: http://172.23.0.2:8080/

I can't access 172.23.0.2:8080 at all since Docker for Mac has limited networking features.
It would be awesome to be able to configure devserver to use only 0.0.0.0 and tell it to not to listen also a LAN address.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions