title: nodemon stuck on "[nodemon] restarting due to changes..." on Docker
body: <p>please help me here, I am facing this problem and CAN'T figure out.
  After I run docker compose-up, nodemon start to monitoring normally, after changes, it gets stuck in <code>[nodemon] restarting due to changes...</code> and nothing else happens after that.</p>
  
  <p>What I tried so far was:</p>
  
  <ul>
  <li>Use <code>--legacy</code> flag</li>
  <li>Reset and Reinstall Docker</li>
  <li>Use an older/newer version of Node and Nodemon</li>
  <li>Set Docker to run as Administrator and give firewall permissions.</li>
  </ul>
  
  <p>I just can't find where is the problem.</p>
  
  <p>Here's the Dockerfile:</p>
  
  <pre><code>FROM node:12.16.3
  
  WORKDIR /usr/src/twa
  
  COPY package*.json ./
  
  RUN npm ci
  
  COPY . .
  
  </code></pre>
  
  <p>Here's the Docker-compose file:</p>
  
  <pre><code>version: '3.7'
  
  services:
      node:
          container_name: node
          build: .
          user: node
          ports: 
              - "3000:3000"
          volumes: 
              - ".:/usr/src/twa"
          command: "npm run dev"
  </code></pre>
  
  <p>Here's package.json file:</p>
  
  <pre><code>{
    "name": "api_twa",
    "version": "1.0.0",
    "description": ,
    "main": "index.js",
    "scripts": {
      "start": "node src/server.js",
      "dev": "nodemon --watch src src/server.js"
    },
    "author": ,
    "license": "MIT",
    "dependencies": {
      "express": "^4.17.1",
      "sequelize": "^5.21.7",
      "tedious": "^8.3.0"
    },
    "devDependencies": {
      "nodemon": "^2.0.3",
      "sequelize-cli": "^5.5.1"
    }
  }
  </code></pre>
  
  <p>Here's the app file:</p>
  
  <pre><code>const express = require('express')
  const routes = require('./routes')
  
  require('./database')
  
  const port = process.env.PORT || 3000
  
  const app = express()
  
  app.use(express.json())
  app.use(routes)
  
  app.listen(port, () =&gt; console.log(`Server running on port ${port}`))
  </code></pre>
  
  <p>I am using Docker version 19.03.8</p>
  
  <p>Windows 10 Pro (fresh installed)
  Version 1909
  Installed on 29/04/2020
  OS build 18363.815</p>
  
  <p>If I try to restart the container, it doesn't do anything.</p>
  
  <p>Here's the log with <code>--verbose</code></p>
  
  <pre><code>
  &gt; api_twa@1.0.0 dev /usr/src/twa
  
  &gt; nodemon --verbose --watch src src/server.js
  
  [nodemon] 2.0.3
  
  [nodemon] to restart at any time, enter `rs`
  
  [nodemon] or send SIGHUP to 24 to restart
  
  [nodemon] watching path(s): src/**/*
  
  [nodemon] watching extensions: js,mjs,json
  
  [nodemon] starting `node src/server.js`
  
  [nodemon] forking
  
  [nodemon] child pid: 37
  
  [nodemon] watching 7 files
  
  Server running on port 3000
  
  [nodemon] files triggering change check: src/controllers/UserController.js
  
  [nodemon] matched rule: /usr/src/twa/src/**/*
  
  [nodemon] changes after filters (before/after): 1/1
  
  [nodemon] restarting due to changes...
  
  [nodemon] src/controllers/UserController.js
  
  [nodemon] child pid: 47
  </code></pre>
  
  <p>If anyone PLEASE help me here, I'm stuck with this... </p>