Docker Project

This is my first docker project in accordance of IIEC-RISE 1.0 Campaign which was conducted by Vimal daga sir and IIEC community.This project is based on Infrastructure As Code (IAC) which is used to set a Matomo web app in just single click by getting done all their infrastructure in single go.

No alt text provided for this image

Technologies used : Docker-compose on top of Redhat Linux 8 (RHEL 8)

Matomo is a free and open-source web analytics application which is used to track online visits to one or more websites and displays reports on these visits for analysis. 

In this project, Matomo which uses MySQL as its database server is deployed in docker with the help of Docker-Compose.

Post Address Translation (PAT) is also included in this project for outside accessibility.

Persistent volume named mysql_storage is used as a Matomo's database for permanent storage.

Here we will go step-by step process for deployment:

In this project, MySQL version 5.7 and Matomo:3.13.4-Apache images downloaded by pull commands in docker were used.

First step is to setup the separate container for database server by entering the commands shown below.

No alt text provided for this image

Then download MySQL software by yum install MySQL and setup the databases by entering these commands.

No alt text provided for this image
No alt text provided for this image

Next step is to setup the container for Matomo by entering these commands.

No alt text provided for this image

Then enter your Base OS IP with port number in browser and it will open the installation setup.

But, if the Matomo webapp is to launched by single click in one second,it need to automate the process. For this docker-compose is used to launch the whole infrastructure automatically by single click in one second.

The docker-compose file is shown below

No alt text provided for this image

When you run docker-compose up command in the terminal, it launches the Matomo webapp and then if you enter your Base OS IP and port number in the browser, you will see the installation setup.

No alt text provided for this image
No alt text provided for this image

Finally, I like to thank Mr. Vimal Daga sir and IIEC Community for providing me this amazing opportunity to learn docker with completely free of cost.

To view or add a comment, sign in

More articles by Sri Vishnuvardhan A

Others also viewed

Explore content categories