title: Permission Denied Error using Laravel & Docker
body: <p>I have two docker containers: Nginx and App.<br>
  The app container extends PHP-fpm and also has my Laravel Code.</p>
  
  <p>In my <code>docker-compose.yml</code> I'm doing:</p>
  
  <pre><code>version: '2'
  services:
      nginx:
          build:
              context: ./nginx
              dockerfile: ./Dockerfile
          ports:
              - "80:80"
          links:
              - app
      app:
          build:
              context: ./app
              dockerfile: ./Dockerfile
  </code></pre>
  
  <p>In my Nginx Dockerfile i'm doing:</p>
  
  <pre><code>FROM nginx:latest
  WORKDIR /var/www
  ADD ./nginx.conf /etc/nginx/conf.d/default.conf
  ADD . /var/www
  EXPOSE 80
  </code></pre>
  
  <p>In my App Dockerfile I'm doing:</p>
  
  <pre><code>FROM php:7-fpm
  WORKDIR /var/www
  RUN apt-get update &amp;&amp; apt-get install -y libmcrypt-dev mysql-client &amp;&amp; docker-php-ext-install mcrypt pdo_mysql
  ADD . /var/www
  </code></pre>
  
  <p>After successfully running docker-compose up, I have the following error when I try localhost</p>
  
  <blockquote>
    <p><strong>The stream or file "/var/www/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied</strong></p>
  </blockquote>
  
  <p>From my understanding, the storage folder needs to writable by the webserver.<br>
  What should I be doing to resolve this?</p>