title: Adding permissions to host directory with docker-compose
body: <p>I'm trying to set up a development environment using docker-compose
  and my container does not seem to have permissions to the host directory
  that is mounted to the container, i'm getting this error when running
  a grunt task that tries to modify folders inside the volume:</p>
  
  <pre><code>app_1                   | Warning: Unable to delete ".tmp" file (EACCES, permission denied '.tmp'). Use --force to continue.
  </code></pre>
  
  <p>here's my docker file:</p>
  
  <pre><code>FROM node:0.10
  
  RUN mkdir -p /usr/src/app
  WORKDIR /usr/src/app
  
  RUN apt-get update \
      &amp;&amp; apt-get install -y --no-install-recommends ruby-sass \
      &amp;&amp; rm -rf /var/lib/apt/lists/* \
      &amp;&amp; apt-get clean -y \
      &amp;&amp; apt-get autoremove -y
  
  RUN npm install -g grunt-cli bower
  
  RUN groupadd -r node \
  &amp;&amp;  useradd -r -m -g node node
  
  RUN chown -R node:node /usr/src/app
  
  USER node
  
  EXPOSE 8080
  </code></pre>
  
  <p>and my docker-compose file:</p>
  
  <pre><code>app:
    build: .
    dockerfile: Dockerfile.dev
    ports:
     - "9000:9000"
    env_file:
     - ./server/config/env/development.env
    volumes:
     - ./:/usr/src/app:Z
    command: bash -c "npm install &amp;&amp; bower install &amp;&amp; grunt dev &amp;&amp; npm start"
  
  db:
    ports:
     - "27017:27017"
  </code></pre>
  
  <ul>
  <li>I'm running ubuntu 15.10 with docker-compose version 1.5.2, build 7240ff3</li>
  <li>Note that I am using the :Z permission</li>
  </ul>