This is a modified version of docker4drupal, for full instructions on using the stack go there.
This version will get you up and running locally with less steps.
Clone this repo to your local and perform the following:
- add the following to your hosts file (osx: /private/etc/hosts)
127.0.0.1 drupal.docker.localhost
- create your settings.php in ./drupal/sites/default with this content
- run
docker-compose build
and then bring the project up withdocker-compose up -d
. This will build your containers but the site will not be functional yet (missing composer install). Note: this step installs the initial.sql db. - with the containers running, do
make composer install
, this will ssh into the container, pull down drupal core, etc.
After it's done (composer install takes a long time) go to drupal.docker.localhost:8000 and the site should be running.
The initial user and password are admin/admin