title: Not work port in docker-compose + npm run start
body: <p>External port does not work in <code>docker-compose</code> with <code>npm run start</code> bundle</p>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM node:12.14-alpine
  
  RUN apk add --no-cache git
  </code></pre>
  
  <p>docker-compose.yml</p>
  
  <pre><code>project-node-start:
          build:
              context: project/docker
              dockerfile: development/node-start/Dockerfile
          container_name: project-node-start
          volumes:
              - ./project:/app
          ports:
              - 3000:8080
          working_dir: /app/assets
          command: sh -c "until [ -f .ready ] ; do sleep 1 ; done &amp;&amp; npm run start"
  </code></pre>
  
  <p>logs</p>
  
  <pre><code>project-node-start    | 
  project-node-start    | &gt; static-site-webpack-habr@2.0.0 start /app/assets
  project-node-start    | &gt; webpack-dev-server --mode development --open
  project-node-start    | 
  project-node-start    | ℹ ｢wds｣: Project is running at http://localhost:8080/
  project-node-start    | ℹ ｢wds｣: webpack output is served from /
  project-node-start    | ℹ ｢wds｣: Content not from webpack is served from /app/assets
  project-node-start    | Browserslist: caniuse-lite is outdated. Please run next command `npm update caniuse-lite browserslist`
  project-node-start    | ⚠ ｢copy-webpack-plugin｣: unable to locate 'src/img' at '/app/assets/src/img'
  project-node-start    | ⚠ ｢wdm｣: Hash: ffec1d218e7d8ef2bfdd
  project-node-start    | Version: webpack 4.39.3
  project-node-start    | Time: 5060ms
  project-node-start    | Built at: 05/21/2020 7:32:31 PM
  project-node-start    |                    Asset       Size  Chunks             Chunk Names
  project-node-start    |          ./css/style.css   1.43 KiB    main  [emitted]  main
  project-node-start    |      ./css/style.css.map   3.05 KiB    main  [emitted]  main
  project-node-start    |              ./js/app.js    620 KiB    main  [emitted]  main
  project-node-start    |          ./js/app.js.map    754 KiB    main  [emitted]  main
  project-node-start    |      favicon/favicon.ico    163 KiB          [emitted]  
  project-node-start    | fonts/Roboto-Regular.ttf    168 KiB          [emitted]  
  project-node-start    |        fonts/icomoon.eot   1.45 KiB          [emitted]  
  project-node-start    |        fonts/icomoon.svg   1.43 KiB          [emitted]  
  project-node-start    |        fonts/icomoon.ttf   1.29 KiB          [emitted]  
  project-node-start    |       fonts/icomoon.woff   1.36 KiB          [emitted]  
  project-node-start    |               index.html  542 bytes          [emitted]  
  project-node-start    | Entrypoint main = ./css/style.css ./js/app.js ./css/style.css.map ./js/app.js.map
  project-node-start    | [1] multi (webpack)-dev-server/client?http://localhost:8080 ./src/js/app.js ./src/scss/style.scss 52 bytes {main} [built]
  project-node-start    | [./node_modules/ansi-html/index.js] 4.16 KiB {main} [built]
  project-node-start    | [./node_modules/ansi-regex/index.js] 135 bytes {main} [built]
  project-node-start    | [./node_modules/jquery/dist/jquery.js] 274 KiB {main} [built]
  project-node-start    | [./node_modules/strip-ansi/index.js] 161 bytes {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/index.js?http://localhost:8080] (webpack)-dev-server/client?http://localhost:8080 4.29 KiB {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.85 KiB {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {main} [built]
  project-node-start    | [./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {main} [built]
  project-node-start    | [./node_modules/webpack/hot sync ^\.\/log$] (webpack)/hot sync nonrecursive ^\.\/log$ 170 bytes {main} [built]
  project-node-start    | [./src/js/app.js] 128 bytes {main} [built]
  project-node-start    | [./src/scss/style.scss] 39 bytes {main} [built]
  project-node-start    |     + 22 hidden modules
  project-node-start    | 
  project-node-start    | WARNING in unable to locate 'src/img' at '/app/assets/src/img'
  project-node-start    | Child html-webpack-plugin for "index.html":
  project-node-start    |      1 asset
  project-node-start    |     Entrypoint undefined = index.html
  project-node-start    |     [./node_modules/html-webpack-plugin/lib/loader.js!./src/html/views/index.html] 779 bytes {0} [built]
  project-node-start    |     [./node_modules/lodash/lodash.js] 528 KiB {0} [built]
  project-node-start    |     [./node_modules/webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
  project-node-start    |     [./node_modules/webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
  project-node-start    |     [./src/html/includes/footer.html] 49 bytes {0} [built]
  project-node-start    |     [./src/html/includes/head.html] 315 bytes {0} [built]
  project-node-start    |     [./src/html/includes/header.html] 52 bytes {0} [built]
  project-node-start    |     [./src/html/includes/scripts.html] 54 bytes {0} [built]
  project-node-start    | Child mini-css-extract-plugin node_modules/css-loader/dist/cjs.js??ref--4-1!node_modules/postcss-loader/src/index.js??postcss!node_modules/sass-loader/dist/cjs.js??ref--4-3!src/scss/style.scss:
  project-node-start    |     Entrypoint mini-css-extract-plugin = *
  project-node-start    |     [./node_modules/css-loader/dist/cjs.js?!./node_modules/postcss-loader/src/index.js?!./node_modules/sass-loader/dist/cjs.js?!./src/scss/style.scss] ./node_modules/css-loader/dist/cjs.js??ref--4-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/dist/cjs.js??ref--4-3!./src/scss/style.scss 4.68 KiB {mini-css-extract-plugin} [built]
  project-node-start    |     [./node_modules/css-loader/dist/runtime/api.js] 2.61 KiB {mini-css-extract-plugin} [built]
  project-node-start    | ℹ ｢wdm｣: Compiled with warnings.
  </code></pre>
  
  <p><strong>docker-compose ps</strong></p>
  
  <pre><code>project-node-start    docker-entrypoint.sh sh -c ...   Up       0.0.0.0:3000-&gt;8080/tcp 
  </code></pre>
  
  <p>But nothing happens in the browser, what could be the problem</p>