Drupal Up - Pal up with drupal

Installing Drupal 8 with composer and Docker - docker4drupal 2018!

In this video, we are going to install Drupal 8 with the help of composer and docker4drupal

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_drupal --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/docker4drupal.git docker_drupal_server
rm -R docker_drupal_server/.git

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

rm docker_drupal_server/docker-compose.override.ym

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

How to install composer:
https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx

How to install Docker:
https://docs.docker.com/engine/installation/

drupal-composer
https://github.com/drupal-composer/drupal-project

docker4drupal
https://github.com/wodby/docker4drupal

Meet the author

Nikolay is a Drupal PHP developer with more than 7 years of experience. Passion for teaching, passion for simplicity and effectiveness of the code are just some keywords that he cares about. See more ...
Drupal Up is a platform for learning Drupal ...

The idea is though not just to be another platform with some boring videos but all the videos to be inspired by real-world problems. That means something that you will most probably need if you work with Drupal. We want you to be successful and we want to teach you everything we know about Drupal!
So watch the videos, try to follow and reproduce, ask questions and you will see you will be able to conquer this wonderful sea that Drupal 8 is.