Skip to content

rabbitlair/drupalindocker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal in Docker

Simple set of scripts to launch a new Drupal local site on Docker containers. It deploys an Ubuntu 14.04 webserver node inside a Docker container, with Apache 2.4 and PHP FPM 5.5, with some PHP extensions already configured: memcached and opcache (this one is disabled by default).

Drush is installed, and Drupal 6, 7 and 8 are supported (6 and 7 are installed with Memcache support enabled). MySQL and Memcached official Docker images are used to run those services.

Usage

First, edit Makefile, and set your preferred settings:

  • NAME: name of the Docker container
  • URI: domain to be used by the Drupal site
  • PORT: you localhost port which will be redirected to the container's tcp/80
  • ADMINMAIL: email account for Drupal's admin account
  • ADMINPASS: password for Drupal's admin account
  • SITENAME: site title for the website
  • DBNAME: Database name where Drupal will be installed
  • DBUSER: Database user for the Drupal app
  • DBPASS: Database user's password
  • MYSQL_ROOT_PASSWORD: Password for database's root account

After that, save the changes, and execute make to have everything up and running. First execution will take longer, as it has to pull and build the Docker images.

To kill and remove the containers, but not delete the Drupal code and database, execute make halt. If you want to clean containers and the Drupal code and database, execute make destroy.

Dependencies

This has been tested on Ubuntu 14.04 64 bits. Anyway, you should only need to have installed latest make and docker packages from your distribution package manager.

About

Simple way to launch a new Drupal local site on Docker containers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published