title: Hot Reload with docker compose
body: <p>I just seeded an angular app from <a href="https://vmware.github.io/clarity/documentation/v0.11/get-started" rel="nofollow noreferrer">Project Clarity</a> and am trying to get hot reload to work when I run it in a docker container. </p>
  
  <p>If I go into the running container and edit a file, the reload works fine, but I'd like to be able to edit the files out of the container and them update in the container. Which I though would work if I set the volume but it doesn't seem to be working.</p>
  
  <p>My Dockerfile....</p>
  
  <pre><code>FROM node:latest
  
  RUN mkdir -p /usr/src/client
  WORKDIR /usr/src/client
  
  COPY package.json /usr/src/client
  RUN npm install
  COPY . /usr/src/client
  EXPOSE 4200
  CMD ["npm", "start"]
  </code></pre>
  
  <p>and my docker-compose.yml file...</p>
  
  <pre><code>version: '2' 
  
  services:
    client:
      build: clarity-seed
      ports:
        - "4200:4200"
      volumes:
        - ./clarity-seed:/usr/src/client
        - /usr/src/client/node_modules
  </code></pre>
  
  <p>I'm using docker-compose because I'll eventually setup an express server and a mongo databbase.</p>