Docker-Drupal8
Docker-Drupal8 copied to clipboard
Development environment for Drupal 8 build with Docker Compose
Development environment for Drupal 8 build with Docker Compose
Dependencies
How to use
Download this repository
$ git clone [email protected]:brunogoossens/dockercompose-drupal8.git Drupal8-Docker
$ cd Drupal8-Docker
Copy drupal code into web/app folder
Start a new terminal (because the other one is running our containers) and copy the Drupal 8 code into the ./web/app folder.
$ git clone --branch 8.4.x http://git.drupal.org/project/drupal.git web/app
Start the docker containers
This command will build the containers and start the web and mysql servers. All logging will be outputted on the screen.
$ docker-compose up -d
install Drupal composer updates
$ docker-compose exec web composer install -o
Install Drupal 8 by using Drupal console
$ docker-compose exec web drupal site:install --db-host=mysql --db-name=drupal8 --db-user=root --db-pass=root