This is my docksal template for drupal sites. You can install it in a existing project by using the install file in this directory:
cd path/to/your/project *(in this directory you have $DOCROOT (docroot or web or html)*
curl -fsSL https://raw.githubusercontent.com/fjmk/docksal-template/master/install | bash
# if you want to use tagged branches, drupal7 or drupal8, you add a bash argument:
curl -fsSL https://raw.githubusercontent.com/fjmk/docksal-template/drupal8/install | bash -s drupal8
- docksal.env # docksal enviroment file. Make some customizations, in this file or in .docksal-local.env:
- CLI_IMAGE='docksal/cli:1.3-php5'
- VIRTUAL_HOST=your-project.docksal
- MYSQL_BACKUP="${HOME}/backups/your-project.sql.gz"
- docksal-local.yml # Add phpmyadmin and mailhog containers ot this project
- example.settings.local.php # Example settings.local.php file. Is copied in init command if not exists in $DOCROOT}/sites/default/
- env # show local environment as seen in fin command
- init # init drupal in ${DOC_ROOT} and load database
- mydb # load database, create quick snapshot, load quick snapshot
- phpcs # test your files with phpcs
- test # quick test if your drupal site is up and running
- phpadmin.config.php # work on default database without logging in
- my.cnf
- php-cli.ini
- php.ini # use mailhog for drupal e-mails