- Forked drupal-composer/drupal-project project from wodby
- Downloaded and unpacked docker4drupal.tar.gz from wodby from the latest stable release to my project root
- Deleted docker-compose.override.yml as it's used to deploy vanilla Drupal
- Ensured APACHE_DOCUMENT_ROOT is correct, by default set to /var/www/html/web for composer-based projects where Drupal is in web subdirectory Ensured database access settings in my settings.php corresponds to my values in .env file, e.g.:
$databases['default']['default'] = array (
'database' => 'drupal', // same as $DB_NAME
'username' => 'drupal', // same as $DB_USER
'password' => 'drupal', // same as $DB_PASSWORD
'host' => 'mariadb', // same as $DB_HOST
'driver' => 'mysql', // same as $DB_DRIVER
'port' => '3306', // different for PostgreSQL
'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql', // different for PostgreSQL
'prefix' => '',
);
- Configured domains e.g.:
/etc/hosts 127.0.0.1 sandbox.dev.localhost
- Uncommented lines in the compose file to run redis
- Running containers: make up or docker-compose up -d Your drupal website should be up and running at http://sandbox.dev.localhost:81 You can see status of your containers and their logs via portainer: http://portainer.drupal.docker.localhost:8000
- Rename development.settings.local.php to settings.local.php and move it to default folder. To execute drush commands you must enter inside the container with exec container-name bash