This project is an empty Docksal project for use with exisiting Drupal code and database. It creates the default containers for a web project. There is extra configuration to automatically create the correct database import the data.
For Drupal 7 or non Compser Drupal 8 sites copy your exisiting code into the docroot folder.
Copy and exported database in either .sql or .sql.gz file in the the db folder.
There are changes require for the Docksal environment to meet you specific project. The most important is creating the corrent database.
- Copy the
docksal.env
file todocksal-local.env
. - Edit the new
docksal-local.env
file. - Change the MYSQL_PORT_MAPPING to a unique mapping for you system following the instructions in the file.
- Change the
MYSQL_DATABASE
,MYSQL_USER
andMYSQL_PASSWORD
values to match the database settings for your Drupal site.
Copy the drush/default.aliases.drushrc.php
to drush/aliases.drushrc.php
.
Edit the drush/aliases.drushrc.php
and change the uri value to the uri of your new project.