Drupal logo

Drupal

Open-source content management system (CMS) that helps users build, manage, and organize digital content

#CMS

Getting Started

  1. Create a folder and move to it
    mkdir drupal && cd drupal
    
  2. Create a docker-compose.yml file and add the following content:
    docker-compose.yml
    services:
      drupal:
        container_name: drupal
        image: drupal
        ports:
          - 8081:80
        volumes:
          - drupal-data:/opt/drupal
        depends_on:
          - mariadb
    
      mariadb:
        container_name: drupal-mariadb
        image: mariadb
        environment:
          - MARIADB_ROOT_PASSWORD=root
          - MARIADB_DATABASE=drupal
          - MARIADB_USER=drupal
          - MARIADB_PASSWORD=drupal
        volumes:
          - mariadb-data:/var/lib/mysql
    volumes:
      drupal-data:
      mariadb-data:
    
  3. Start the service using docker compose.
    docker compose up -d
    
  4. Wait a minute for the containers to start up, then visit http://localhost:8081 to access the Drupal.

Install Drupal

  1. Choose language
    image
  2. Choose profile
    image
  3. Configure databased
    image
    • Database type: MySQL, MariaDB, Percona Server, or equivalent
    • Database name: drupal
    • Database username: drupal
    • Database password: drupal
    • Advanced options > Host: mariadb
    • Advanced options > Database port: 3306
  4. Complete the installation
    image
  5. Configure site information
    image
    Sample values (you can change them):

Redesign Drupal admin theme

The default Drupal Admin page may feel a bit outdated. However, one of Drupal's strengths is its ability to freely install and customize themes.
By exploring Drupal Themes, you can find and apply various themes to give it a more modern look.

Here, we'll install and use the Gin Admin Theme to completely refresh the Drupal Admin page with a modern design.

  1. Install the Gin admin theme
    docker exec -it drupal sh -c "cd /opt/drupal && composer require 'drupal/gin'"
    
  2. Navigate to Admin -> Appearance page
    • Find the Gin theme in the "Uninstalled themes" section
    • Click "Install" button.
  3. Make Gin your admin theme:
    image
    • Scroll to the "Administration theme" section
    • Select "Gin" from the dropdown
    • Click "Save configuration"