title: Docker not reload nodejs app even I use nodemon?
body: <p>I have a problem which it took my two days and still not find any solution. I am developing an express app with docker but when make code changes docker not reload the app. I have to docker-compose down and up to see the changes. I search a lot on the internet but can't find any solution to fit my problem.</p>
  
  <p>I will very grateful if you help me. Thanks a lot.</p>
  
  <p>My docker directory like this: </p>
  
  <pre><code>/api
     Dockerfile
  /mongo
     Dockerfile
  docker-compose.yml
  </code></pre>
  
  <p>Here is my /api/Dockerfile  code</p>
  
  <pre><code>FROM node:latest
  
  RUN mkdir app
  WORKDIR /app
  COPY . /app
  RUN npm install
  EXPOSE 3000
  CMD ["npm", "start"]
  </code></pre>
  
  <p>Here is my compose file</p>
  
  <pre><code>version: '2'
  services:
    api:
      container_name: ats-express
      build: ./api
      volumes:
        - ../ats-api:/app
      ports:
        - "3000:3000"
      links:
        - mongo
      depends_on:
        - mongo
  
      restart: always
  </code></pre>
  
  <p>and here is my npm start script in package.json at express-api</p>
  
  <pre><code>"scripts": {
      "start": "nodemon ./bin/www"
    }
  </code></pre>