Thanks for your interest but this project is now deprecated. Visit http://github.com/drupal-docker if you're looking for Drupal-Docker integration. Following organization is a direct successor of all repos which are related to Drupal&Docker and created by me. Thanks and good luck!
New version of drupal-boilerplate project which is now Docker-oriented. Use it to start new Drupal project or you can add it to existing project. All you need to do is:
curl -s https://raw.githubusercontent.com/zaporylie/drupal-boilerplate/master/scripts/install.sh | sh
That command will download repository for you and extract it to the current directory.
You can also do it manually - download ZIP file and extract it to preferred destination.
drupal-boilerplate repository has a few docker-compose YAML files which helps
you start group of containers required to run Drupal site. All you need to do is
type one of docker-compose up
commands. More about how to "up" your project in
"Running" section.
- Linux
Since we want to use Docker containers to run our project we need our host to has Linux operating system. Read more about docker requirements on http://docker.com If you are OSX user - nothing is lost. You can use boot2docker or docker-host which was a part of this project before but now is hosted as a separate project.
# You can use this command on Ubuntu to install it.
curl -sSL https://get.docker.com/ubuntu/ | sudo sh
# The easiest way to install on ubuntu is:
curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
All you need is one of these commands:
# To run default file (docker-compose.yml):
docker-compose up -d
# To run selected yml file:
docker-compose --file=docker-compose-production.yml up -d
Notice, that flag -d means detached mode, so use docker-compose logs
for more
information about running services.
docker-compose ps
will give you overview about running containers.
- Use nginx-proxy to get domain support for new project and proxy traffic on port 80 (eventually 443) to your container (which, by default, has random port).
Repository was created by zaporylie jakub@piaseccy.pl with Ny Media AS support.