Create Drupal 8 project using Composer with Docksal, the native way
- Install Docksal
- Manage Docksal
- Download Drupal 8
- Initialize Docksal project
- Manage Docksal project, container(s)
- Database config settings
- Composer and other commands
This is for you if you want the following:
- Manual creation of Drupal 8 project from scratch using Composer.
- Manual initialization of Docksal from scratch.
To install, follow official instructions in docksal docs.
For OSX/macOS, I would recommend Docker Desktop installation option.
fin system start
fin system stop
We will use
Composer to download Drupal 8, and we will run
composer using docksal/cli.
Do not use your host
fin run-cli composer create-project drupal-composer/drupal-project:8.x-dev . --stability dev --no-interaction
Inside the project root:
Assuming you would host your production site into Acquia Cloud, the docroot/webroot directory would be
docroot. You may change it to any directory such as
fin config set DOCROOT=docroot
The configuration settings for your docksal can be found inside
fin project start
fin project stop
fin project remove
drush commands must be prefixed with
fin. For example,
fin drush cr
composer commands must also be prefixed with
fin exec. For example,
fin composer install
fin exec composer install
Likewise, all other commands must be prefixed with
fin exec is recommended over just
fin for both
composer and other commands.