title: docker unable to load stylesheets for laravel
body: <p>I created a very small and simple docker-compose for a small test with laravel. About everything works apart from that I am unable to get my stylesheets to load. It works perfectly locally in valet.</p>
  
  <p>here is my docker-compose</p>
  
  <pre><code>version: '2'
  services:
      web:
          build:
              context: ./
              dockerfile: ./dockerfiles/web.docker
          ports:
              - 8080:80
              - 9090:8080
         links:
              - app
              - mariadb
      app:
          build:
               context: ./
              dockerfile: ./dockerfiles/app.docker
          volumes:
              - ~/workbench/laravel/testproject:/var/www/testproject
          depends_on:
            - mariadb
      mariadb:
          image: mariadb:10.2
          environment:
              MYSQL_ROOT_PASSWORD: toor
              MYSQL_DATABASE: testproject
              TEST_DB_NAME: laravel_test
              MYSQL_USER: laravel
              MYSQL_PASSWORD: laravel
              MARIADB_DATABASE: testproject
          volumes:
              - ./mariadb:/var/mariadb
          ports:
              - 33061:3306
  </code></pre>
  
  <p>Here is my vhost for nginx</p>
  
  <pre><code>server {
  listen 80;
  index index.php;
  root /var/www/testproject/public;
  
  location / {
      try_files $uri $uri/ /index.php?$query_string;
  }
  
      location ~ \.php$ {
          fastcgi_split_path_info ^(.+\.php)(/.+)$;
          fastcgi_pass app:9000;
          fastcgi_index index.php;
          include fastcgi_params;
          fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
          fastcgi_param PATH_INFO $fastcgi_path_info;
      }
  }
  </code></pre>
  
  <p>I can visit all my routes, and functions seem to work just fine, it's just that none of my javascript, images or stylesheets are loading.
  For example I try to load a bootstrap from a template like so:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="/homer/vendor/bootstrap/dist/css/bootstrap.css" /&gt;
  </code></pre>
  
  <p>Inside my public folder I do have the whole directory /public/homer/vendor/bootstrap/dist/css/bootstrap.css the file is located at the correct directory.</p>
  
  <p>Am I missing something that I have to do inside the vhost to make sure that those files can be loaded just fine?</p>
  
  <p>I have tried to edit the path from </p>
  
  <pre><code>&lt;link rel="stylesheet" href="/homer/vendor/bootstrap/dist/css/bootstrap.css" /&gt;
  </code></pre>
  
  <p>to </p>
  
  <pre><code>&lt;link rel="stylesheet" href="public/homer/vendor/bootstrap/dist/css/bootstrap.css" /&gt;
  </code></pre>
  
  <p>and any form of public.</p>
  
  <ul>
  <li>/public/</li>
  <li>public </li>
  <li>../../../../public</li>
  </ul>
  
  <p>but none seem to work. I also rather not have to change this so my path can just remain the same between docker and valet.</p>