Running docker container not accessible from host (localhost:8081)

Based on this:

https://github.com/webpack/webpack-dev-server/issues/547

and:

https://dev.to/azawakh/don-t-forget-to-give-host-0-0-0-0-to-the-startup-option-of-webpack-dev-server-using-docker-1483

https://pythonspeed.com/articles/docker-connection-refused/

It works if I change:

host: 'localhost', // can be overwritten by process.env.HOST

to:

host: '0.0.0.0', // can be overwritten by process.env.HOST

in the file: /frontend-router/config/index.js

Tags:

Docker

Vue.Js