title: Use nodemon with docker and docker-compose
body: <p>I'm using nodemon with docker-compose.
  Here is my Dockerfile:</p>
  
  <pre><code>FROM node:10
  
  WORKDIR /usr/src/app
  
  COPY package*.json ./
  
  RUN npm install
  
  COPY . .
  
  CMD ["npm", "start"]
  
  </code></pre>
  
  <p>My docker-compose.yml</p>
  
  <pre><code>version: '3'
  services:
    app:
      build: .
      volumes:
        - .:/usr/src/app
        - /usr/src/app/node_modules
      container_name: docker-node-mongo
      restart: always
      ports:
        - 3000:3000
        - 9229:9229
      command: npm start
      links:
        - mongo
        - redis
    mongo:
      container_name: mongo
      image: mongo
      ports:
        - "27017:27017"
    redis:
      image: redis:alpine
      volumes:
        - /var/redis/data:/data    
  </code></pre>
  
  <p>And my package.json script:</p>
  
  <pre><code>{
    "scripts": {
      "start": "nodemon --inspect=0.0.0.0 index.js"
    }
  }
  
  </code></pre>
  
  <p>According to the code inside of my working docker container, my code is updating, but I don't have any reload.</p>