title: Docker compose - share volume Nginx
body: <p>I just want to test Docker and it seems something is not working as it should. When I have my docker-compose.yml like this:</p>
  <pre><code>web:
    image: nginx:latest
    ports:
      - &quot;80:80&quot;
  </code></pre>
  <p>when in browser I run my <code>docker.app</code> domain (sample domain pointed to docker IP) I'm getting default nginx webpage.</p>
  <p>But when I try to do something like this:</p>
  <pre><code>web:
    image: nginx:latest
    volumes:
      - /d/Dev/docker/nginx-www/nginx/html/:/usr/share/nginx/html/ 
    ports:
      - &quot;80:80&quot;
  </code></pre>
  <p>when I run:</p>
  <pre><code>docker-compose up -id
  </code></pre>
  <p>when I run same url in browser I'm getting:</p>
  <blockquote>
  <p>403 Forbidden</p>
  <p>nginx/1.9.12</p>
  </blockquote>
  <p>I'm using Windows 8.1 as my host.</p>
  <p>Do I do something wrong or maybe folders cannot be shared this way?</p>
  <p><strong>EDIT</strong></p>
  <p><strong>Solution (based on @HemersonVarela answer):</strong></p>
  <p>The volume I've tried to pass was in <code>D:\Dev\docker</code> location so I was using <code>/d/Dev/docker</code> at the beginning of my path. But looking at <a href="https://docs.docker.com/engine/userguide/containers/dockervolumes/" rel="noreferrer">https://docs.docker.com/engine/userguide/containers/dockervolumes/</a> you can read:</p>
  <blockquote>
  <p>If you are using Docker Machine on Mac or Windows, your Docker daemon has only limited access to your OS X or Windows filesystem. Docker Machine tries to auto-share your /Users (OS X) or C:\Users (Windows) directory.</p>
  </blockquote>
  <p>so what I needed to do, is to create my <code>nginx-ww/nginx/html</code> directory in <code>C:\users\marcin</code> directory, so I ended with:</p>
  <pre><code>web:
    image: nginx:latest
    volumes:
      - /c/Users/marcin/docker/nginx-www/nginx/html/:/usr/share/nginx/html/ 
    ports:
      - &quot;80:80&quot;
  </code></pre>
  <p>and this is working without a problem. Files are now shared as they should be</p>