Categories
docker

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

By Drew Norman

Camunda Web Guy, Wordpress Developer, Artist, Mountain Biker, Former Marathon Runner, Follower of Jesus, Love my wife and my 2 beautiful boys, Max and Garrett

Leave a Reply

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