This is a multi-container docker application using drupal and MySQL.
Docker is a software platform for building applications based on containers — small and lightweight execution environments that make shared use of the operating system kernel but otherwise run in isolation from one another. While containers as a concept have been around for some time, Docker, an open source project launched in 2013, helped popularize the technology, and has helped drive the trend towards containerization and microservices in software development that has come to be known as cloud-native development.
Drupal is a free and open-source content-management framework written in PHP and distributed under the GNU General Public License. It is used as a back-end framework for at least 2.1% of all Web sites worldwide ranging from personal blogs to corporate, political, and government sites including WhiteHouse.gov and data.gov.uk. It is also used for knowledge management and business collaboration.
MySQL is the world's most popular open source database. With its proven performance, reliability and ease-of-use, MySQL has become the leading database choice for web-based applications, covering the entire range from personal projects and websites, via e-commerce and information services, all the way to high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more.
- This project is completely done on RHEL(Red Hat Enterprise Linux).
- Install docker on the os using the cmd
yum install docker
. - Install docker-compose using the below cmd:
curl –L"https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
- Use
systemctl start docker
to start Docker Service.
-
Pull MySQL Image:
Use
docker pull mysql:5.7
to download the mysql version 5.7 image to use as a database server. -
Pull Drupal Image:
Use
docker pull drupal:8-apache
to download the drupal Image in which apache server is preconfigured.
- Create a docker-compose file with yml extension using
vim docker-compose.yml
- The yml file is
- Use
docker-compose up -d
to start the docker-compose service in detach mode.
- Open the web browser and type the ip address with port number. In my case it is 192.168.122.1:8080.
- Use
docker-compose stop
to stop the docker-compose service.
Youtube link (https://www.youtube.com/playlist?list=PLAi9X1uG6jZ30QGz7FZ55A27jPeY8EwkE)