Sign inSign up

andrewholgate/drupal-php70

By andrewholgate

•Updated over 10 years ago

A base docker image using PHP 7.0 and HTTP/2 on Ubuntu 14.04 for Drupal 8 projects.

Image
2

10K+

andrewholgate/drupal-php70 repository overview

Dockerised Drupal container using PHP 7.0 and HTTP/2 on Ubuntu 16.04 and configured with PHP tools.

For example of how to use this container, see docker-drupal-project-example⁠

⁠Installed

⁠Installation

⁠Create persistent database data-only container

# Build database image based off MySQL 5.7
sudo docker run -d --name mysql-drupal-php70 mysql:5.7 --entrypoint /bin/echo MySQL data-only container for Drupal PHP 7.0 MySQL

⁠Build Drupal Base Image

# Clone Drupal docker repository
git clone https://github.com/andrewholgate/docker-drupal-php70.git
cd docker-drupal-php70

# Build docker image
sudo docker build --rm=true --no-cache --tag="drupal-php70" . | tee ./build.log

⁠Build Project using Docker Compose

# Customise docker-compose.yml configurations for environment.
cp docker-compose.yml.dist docker-compose.yml
vim docker-compose.yml

# Build docker containers using Docker Compose.
sudo docker-compose build --no-cache | tee ./build.log
sudo docker-compose up -d

⁠Host Access

From the host server, add the web container IP address to the hosts file.

# Add IP address to hosts file.
./host.sh

⁠Logging into Web Front-end

# Using the container name of the web frontend.
sudo docker exec -it dockerdrupalphp70_drupalphp70web_1 su - ubuntu

Tag summary

Content type

Image

Digest

Size

309.6 MB

Last updated

over 10 years ago

docker pull andrewholgate/drupal-php70