title: Laravel Not Found, Docker, Apache2
body: <p>I am traying to connect to my container but I am getting the following error. Before my container works without problems. I made a new build but it doesn’t work.</p>
  
  <p>My Docker file is the following:</p>
  
  <pre><code>FROM php:7.2-apache
  
  LABEL maintainer="christianahvilla@gmail.com"
  
  # Install PHP
  RUN apt-get update &amp;&amp; apt-get install -y \
      curl \
      zlib1g-dev \
      libzip-dev \
      nano
  
  # Add and Enable PHP-PDO Extenstions
  RUN docker-php-ext-install mysqli pdo pdo_mysql
  RUN docker-php-ext-enable pdo_mysql
  RUN docker-php-ext-install zip
  
  # # Install PHP Composer
  RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  
  #set our application folder as an environment variable
  ENV APP_HOME /var/www/html
  
  #change uid and gid of apache to docker user uid/gid
  RUN usermod -u 1000 www-data &amp;&amp; groupmod -g 1000 www-data
  
  COPY --chown=www-data:www-data . $APP_HOME
  
  #Expose Port 8000 since this is our dev environment
  EXPOSE 8000
  </code></pre>
  
  <p>My Docker-Compose:</p>
  
  <pre><code>version: "3.7"
  services: 
      #Laravel App
      web:
          build:
              context: .
              dockerfile: Dockerfile
          ports:
              - 8000:80
          volumes:
              - ./:/var/www
              - ./public:/var/www/html
          networks:
              - mynet
          depends_on: 
              - db
  
      #MySQL Service
      db:
          image: mysql:5.7
          container_name: db
          ports:
              - 3306:3306
          environment:
              MYSQL_DATABASE:
              MYSQL_USER: 
              MYSQL_PASSWORD: 
              MYSQL_ROOT_PASSWORD: 
          volumes:
              - mysqldata:/var/lib/mysql/
          networks:
              - mynet
  
  #Docker Networks
  networks:
      mynet:
          driver: bridge
  #Volumes
  volumes:
      mysqldata:
          driver: local
  </code></pre>
  
  <p>When I try to access to http:localhost:8000/ I can do it but if I try to access to another route I get the error.</p>
  
  <p><a href="https://i.stack.imgur.com/qGz78.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qGz78.png" alt="enter image description here"></a></p>