Dockerised Drupal 6, 7 and 8 development environment using PHP 5.5 on Ubuntu 14.04. This image is the development companion to the docker-drupal-php55 project.
# Build database image based off MySQL 5.5
sudo docker run -d --name mysql-drupal-php55-dev mysql:5.5 --entrypoint /bin/echo MySQL data-only container for Drupal Dev MySQL
# Clone Drupal base docker repository
git clone https://github.com/andrewholgate/docker-drupal-php55.git
# Build docker image
cd docker-drupal-php55
sudo docker build --rm=true --tag="drupal-php55" . | tee ./build.log
# Clone Drupal development docker repository
git clone https://github.com/andrewholgate/docker-drupal-php55-dev.git
cd docker-drupal-php55-dev
# Build docker image
sudo docker build --rm=true --tag="drupal-php55-dev" . | tee ./build.log
# Customise docker-compose.yml configurations for environment.
cp docker-compose.yml.dist docker-compose.yml
vim docker-compose.yml
# Build docker containers using Docker Composer.
sudo docker-compose build
sudo docker-compose up -d
From the host server, add the web container IP address to the hosts file.
# Add IP address to hosts file.
sudo bash -c "echo $(sudo docker inspect -f '{{ .NetworkSettings.IPAddress }}' \
dockerdrupalphp55dev_drupalphp55devweb_1) \
drupalphp55dev.example.com \
>> /etc/hosts"
# Using the container name of the web frontend.
sudo docker exec -it dockerdrupalphp55dev_drupalphp55devweb_1 su - ubuntu
Content type
Image
Digest
sha256:55a08bfff…
Size
553.5 MB
Last updated
almost 11 years ago
docker pull andrewholgate/drupal-php55-dev