title: File Not Found - Nginx in Docker
body: <h1>Description</h1>
  <p>I have a docker container with this</p>
  <p><strong>nginx.conf</strong></p>
  <pre><code>server {
      listen 80;
      index index.php index.html;
      root /var/www/public;
  
      location / {
          try_files $uri /index.php?$args;
      }
  
      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>
  <hr />
  <p><strong>docker-compose.yaml</strong></p>
  <pre><code>version: '2'
  services:
  
    # The Application
    app:
      build:
        context: ./
        dockerfile: app.dockerfile
      working_dir: /var/www
      volumes:
        - ./:/var/www
      environment:
        - &quot;DB_PORT=3306&quot;
        - &quot;DB_HOST=database&quot;
  
    # The Web Server
    web:
      build:
        context: ./
        dockerfile: web.dockerfile
      working_dir: /var/www
      volumes_from:
        - app
      ports:
        - 85:80
  
    # The Database
    database:
      image: mysql:5.6
      volumes:
        - dbdata:/var/lib/mysql
      environment:
        - &quot;MYSQL_DATABASE=homestead&quot;
        - &quot;MYSQL_USER=homestead&quot;
        - &quot;MYSQL_PASSWORD=secret&quot;
        - &quot;MYSQL_ROOT_PASSWORD=secret&quot;
      ports:
          - &quot;33062:3306&quot;
  
  volumes:
    dbdata:
  </code></pre>
  <hr />
  <p>The docker seems to build and start successfully</p>
  <pre><code>docker-compose up -d
  docker_app_1 is up-to-date
  docker_database_1 is up-to-date
  Recreating docker_web_1 ... 
  Recreating docker_web_1 ... done
  </code></pre>
  <p>but I kept getting</p>
  <blockquote>
  <p>File not found.</p>
  </blockquote>
  <p>How would one go about debugging this?</p>