0๐
โ
I just change contaner port from 8000 to 8080:
version: "3"
services:
node-app:
build: .
ports:
- "8080:8080"
Because on config/index.js the specified port is 8080
. I can also change that port (i.e. 8000) and change it also in docker.compose.yml (i.e. 8080:8000).
Putting also --host 0.0.0.0
to dev, like that:
"dev": "webpack-dev-server --host 0.0.0.0 --inline --progress --config build/webpack.dev.conf.js",
Because webpack listen only on localhost container, I must allow requests from other interfaces (container ip)
Source:stackexchange.com