title: docker-compose and Dockerfile do not install drupal
body: <p>New to docker and I wanted to install Drupal 7 with docker, to mirror our production server environment. (We are getting ready to upgrade to Drupal 8 - not relevant to this question here.) When I run docker-compose the docker container and an app folder is created, but there is nothing inside app/ . I then placed a composer.json in the root to run composer and install drupal 7. That works, but I thought the point of docker-compose was that it would install everything including drupal 7.
  What am I doing wrong?</p>
  <p>Follow up question:
  Since I am trying to mirror the drupal site on the production server environment, I need to install drupal version 7.69, but this version is not listed on Docker Hub as a package. So, I can't install that specific version?</p>
  <pre><code>Docker 19.03.13
  MacOS 10.14.6
  LAMP
  MySQL databases not in volume, but served from Mac development environment
  </code></pre>
  <p>Directory structure:</p>
  <pre><code>root
  |--apache-drupal.conf
  |--docker-compose.yml
  |--Dockerfile
  |--composer.json 
  </code></pre>
  <p>Dockerfile</p>
  <pre><code>FROM drupal:7.73-apache
  
  RUN apt-get update \
      &amp;&amp; apt-get upgrade -y \
      &amp;&amp; apt-get install -y \
      automake \
      bsdmainutils \
      build-essential \
      ssh \
      unzip \
      curl \
      libopenmpi-dev \
      openmpi-bin \
      git \
      default-mysql-client \
      vim \
      wget \
      zlib1g-dev
  
  # Install Composer
  RUN php -r &quot;copy('https://getcomposer.org/installer', 'composer-setup.php');&quot; &amp;&amp; \
      php composer-setup.php &amp;&amp; \
      mv composer.phar /usr/local/bin/composer &amp;&amp; \
      php -r &quot;unlink('composer-setup.php');&quot; &amp;&amp; \
      ln -s /root/.composer/vendor/bin/drush /usr/local/bin/drush
  
  RUN cp /usr/local/etc/php/php.ini-production /usr/local/etc/php/php.ini &amp;&amp; \
      sed -i -e &quot;s/^ *memory_limit.*/memory_limit = -1/g&quot; /usr/local/etc/php/php.ini &amp;&amp; \
      sed -i -e &quot;s/^ *upload_max_filesize.*/upload_max_filesize = 30M/g&quot; /usr/local/etc/php/php.ini
  
  # Install Drush
  RUN composer global require drush/drush:8.2 &amp;&amp; \
      composer global update
  
  #RUN wget -O drush.phar https://github.com/drush-ops/drush-launcher/releases/download/0.4.2/drush.phar &amp;&amp; \
  #   chmod +x drush.phar &amp;&amp; \
  #   mv drush.phar /usr/local/bin/drush
  
  # Clean repository
  RUN apt-get clean &amp;&amp; rm -rf /var/www/html/* &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  COPY apache-drupal.conf /etc/apache2/sites-enabled/000-default.conf
  
  WORKDIR /app
  </code></pre>
  <p>docker-compose.yml</p>
  <pre><code>version: '2'
  services:
    drupal:
      image: userID/website_d7:1.0
      container_name: website_d7
      build: .
      ports:
        - &quot;8033:80&quot;
      extra_hosts:
        - &quot;test.docker:127.0.0.1&quot;
      environment:
        MYSQL_USER: user
        MYSQL_PASS: pass
        MYSQL_DATABASE: website_d7
      volumes:
        - ./app:/app:cached
      restart: always
  </code></pre>
  <p>Running docker containers with:</p>
  <pre><code>docker-compose build
  docker-compose up
  </code></pre>