title: Getting forbidden error while using nginx inside docker
body: <p>My Docker file contents are </p>
  
  <pre><code>FROM nginx
  COPY /src /usr/share/nginx/html
  </code></pre>
  
  <p>My docker compose file contents are</p>
  
  <pre><code>version: '2'
  services:
    app:
      build: .
      image: app:1.0.0
      volumes:
      - ./src:/usr/share/nginx/html
      ports:
      - "8080:80"
  </code></pre>
  
  <p>I'm getting following error when run docker-compose</p>
  
  <pre><code>*1 directory index of "/usr/share/nginx/html/" is forbidden
  </code></pre>
  
  <p>I tried giving permission to directory -> /usr/share/nginx/html
  it didn't work. </p>
  
  <p>I want to  sync host directory with docker container.  </p>