2017 © Pedro Peláez
 

project drupal-project

Project template for Drupal 8 projects with composer. Optimized to use with Docker and DrupalConsole.

image

weknowinc/drupal-project

Project template for Drupal 8 projects with composer. Optimized to use with Docker and DrupalConsole.

  • Monday, March 12, 2018
  • by jmolivas
  • Repository
  • 0 Watchers
  • 5 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 542 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Composer template for Drupal projects.

Optimized to use with Docker and DrupalConsole., (*1)

Clone repository

git clone https://github.com/weknowinc/drupal-project

Copy and rename the .env.dist file

cp .env.dist .env

Edit configuration

Edit the copied .env file and make changes according to your project needs., (*2)

Example update default HOST_NAME from drupal.develop to mysite.develop., (*3)

Starting the containers

To start the containers you need to execute the following command docker-compose up -d, grab some coffee or a beer and be patient while the images are downloaded to your local computer., (*4)

docker-compose up -d

NOTE: We suggest provide the detached mode flag to run in background., (*5)

Add hostname entry in your /etc/hosts file

127.0.0.1    drupal.develop

NOTE: Use your own domain if you make changes in the copied .env file., (*6)

Open your browser and point to http://drupal.develop/ or the hostname you entered on the .env file., (*7)

Shutting down the containers

docker-compose down

docker-compose down -v

NOTE: You can pass the -v flag to destroy the shared volumes as well. Be careful this will destroy any data on the shared volumes between the container and the local machine., (*8)

Checking for used ports

One common issue you'll likely run into while starting the containers, is finding the ports in use, this could mean an instance of Apache, Nginx, MySQL or other service is already running, so if you want to know what is using the ports you can run this commands on your terminal:, (*9)

# web (Apache, Nginx)
lsof -i :80

# db (MySQL, MariaDB)
lsof -i :3306

We based the docker configuration of this repository on the Drupal4Docker project., (*10)

We based the composer configuration on the drupal-composer/drupal-project project., (*11)

Click here for info about composer., (*12)

The Versions

12/03 2018

dev-master

9999999-dev

Project template for Drupal 8 projects with composer. Optimized to use with Docker and DrupalConsole.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

08/03 2018

8.x-dev

8.9999999.9999999.9999999-dev

Project template for Drupal 8 projects with composer. Optimized to use with Docker and DrupalConsole.

  Sources   Download

GPL-2.0-or-later

The Requires

 

The Development Requires

22/01 2018

7.x-dev

7.9999999.9999999.9999999-dev

Project template for Drupal 7 projects with composer

  Sources   Download

GPL-2.0-or-later

The Requires