Drupal
Open-source content management system (CMS) that helps users build, manage, and organize digital content
#CMS
Getting Started
- Create a folder and move to it
mkdir drupal && cd drupal
- Create a
docker-compose.yml
file and add the following content:docker-compose.ymlservices: 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:
- Start the service using docker compose.
docker compose up -d
- Wait a minute for the containers to start up, then visit http://localhost:8081 to access the Drupal.
Install Drupal
- Choose language
- Choose profile
- Configure databased
- 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
- Database type:
- Complete the installation
- Configure site information
Sample values (you can change them):- Site name:
My Site
- Site email address:
[email protected]
- Username:
admin
- Password:
inputstrongpassword
- Email address:
[email protected]
- Site name:
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.
- Install the Gin admin theme
docker exec -it drupal sh -c "cd /opt/drupal && composer require 'drupal/gin'"
- Navigate to Admin -> Appearance page
- Find the Gin theme in the "Uninstalled themes" section
- Click "Install" button.
- Make Gin your admin theme:
- Scroll to the "Administration theme" section
- Select "Gin" from the dropdown
- Click "Save configuration"