Skip to main content

Drupal

Drupal is an open-source content management system (CMS) used for building websites and applications. It features a flexible and robust system for content management that includes various tools for content creation, workflow, user management, and multilingual capabilities. Drupal is known for its scalability, security, and community support.

Drupal versions

The template now support the following versions of Drupal: 8 || 9 || 10

Drupal installation

To use this template, you need to install Drupal first. You can do it by following the official documentation

With composer

dcmd toolbox start # in your project root folder
composer create-project drupal/recommended-project .

With git

git clone --branch {tag_version} https://git.drupalcode.org/project/drupal.git

Get the template

At root of your project (where the web folder is located), run the following command:

dcmd template get drupal

Configure the template

  • Create and configure the environnement file by copying the .env.example file to .env
  • Set the name of your project in the docker-compose.yml file
  • Set the right name for your virtual host in .docker/etc/apache/httpd-vhosts.conf

More information here : project configuration

Initialize the project

At root of your project (where the web folder is located), run the following command:

dcmd up

Setup the environment

Setup your env files, and your settings for the right database credentials and other settings.

Here are some examples:

  • web/sites/default/settings.php
  • .env
  • development.service.yml ...

Default database credentials

Informationdefault value
hostdb
port3306
namedefault
usernameuser
passworduser
Website URL

You're good to go! You can now access your project at : http://${PROJECT_NAME}.dev.local