title: How to setup Magento 1.9 with Docker and Docker Compose
body: <p>I am trying to run my Magento 1.9 application on Docker using Docker Compose.</p>
  
  <p>I have managed to successfully set everything up. The MySQL database is running and can be accessed from my Magento container. The problem is that Magento is throwing a 500 error, but not giving me any additional context to what the problem might be, so I have no idea where to start.</p>
  
  <p>Apache is using its default configuration. I don't have a .htaccess file in the directory. I don't see any errors in the containers STDOUT and nothing is being written to <code>var/log/system.log</code>.</p>
  
  <p>Does anybody have any suggestions about what I might be doing wrong?</p>
  
  <p>This is my docker-compose.xml file</p>
  
  <pre><code>version: '3.3'
  services:
    web:
      build: 
          context: .
          dockerfile: Dockerfile
      container_name: 'magento'
      restart: always
      depends_on:
          - db
      volumes:
          - /Users/marchorne/projects/magento:/var/www/html/
      ports:
          - 80:80
      environment:
          - MAGE_IS_DEVELOPER_MODE=true
    db:
      container_name: 'mysql'
      image: 'mysql:8.0'
      command: --default-authentication-plugin=mysql_native_password
      restart: always
      environment:
          - MYSQL_ROOT_PASSWORD=root
          - MYSQL_DATABASE=magento
          - MYSQL_USER=root
          - MYSQL_PASSWORD=root
      ports:
          - 3308:3306
      volumes:
          - /Users/marchorne/projects/magento/dumps:/dumps/
  </code></pre>
  
  <p>and this is my Dockerfile:</p>
  
  <pre><code>FROM php:7.1-apache
  
  COPY .:/var/www/html/
  
  RUN apt-get update &amp;&amp; apt-get upgrade -y
  
  RUN docker-php-ext-install mysqli
  
  RUN apt-get install -y apt-transport-https
  
  RUN apt-get install curl
  
  RUN curl -sL https://deb.nodesource.com/setup_12.x | bash
  
  RUN apt-get install nodejs yarn -y
  
  EXPOSE 80
  </code></pre>