Challenge: Run Drupal

Test if you can run Drupal.

We'll cover the following

Drupal

Follow these instructions while editing the provided docker-compose.yml:

  1. Add a service named drupal.

  2. Use the image, drupal. It’s version should be 8-apache.

  3. Specify drupal as the name of the container.

  4. Map drupal's default port 80 to 80.

    πŸ“Œ Make sure to use the same container name and port as required, otherwise, the launching of the application can be affected.

  5. Add the following volumes:

     /var/www/html/modules
     /var/www/html/profiles
     /var/www/html/themes
     /var/www/html/sites
    
  6. Enable the restart option to always.

Get hands-on with 1200+ tech skills courses.