How to install Drupal with Docker

We are going to use composer to create a codebase with the latest version of Drupal 8.

composer create-project drupal-composer/drupal-project:8.x-dev docker_drew –stability dev –no-interaction

Then we are going to clone the latest version of docker4drupal and remove the .git folder from it

git clone https://github.com/wodby/docker4drupa… docker_drupal_server

  • rm -R docker_drupal_server/.git

Then we are going to remove the docker-compose.override.yml which will tell docker4drupal to check for a web folder and load the Drupal codebase from there

rm docker_drupal_server/docker-compose.override.yml

And copy the content of the server folder’s content to the Drupal composer folder:

  • cp -R docker_drupal_server docker_drupal

Afterward, we are going to change to the docker_drupal folder and use docker compose to run the containers:

  • docker-compose up -d

And the Drupal install interface should appear under:
http://drupal.docker.localhost:8000

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.

Not readable? Change text. captcha txt

Start typing and press Enter to search

%d bloggers like this: