/Docker-Compose-Wordpress_mysql-Blogging

Using Docker-compose make Global Blogging Site. For Blogging WordPress is used, For DataBase MySQL is used & docker custom network is used to create Three-tier Architecture.

Global Blogging Made Easy with Docker and WordPress

Create EC2 instance

Install docker-compose :---

Following steps for installation:

Screenshot 2023-10-12 152512

Docker-comopse work on Docker engine , so we need to install docker & start docker services

 a.#yum install docker
 b. #systemctl start docker

for docker-compose on google search standalone:

docker-compose standalone install

(https://docs.docker.com/compose/install/standalone/)

   a. #curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
   b. #chmod +x /usr/local/bin/docker-compose

Screenshot 2023-10-12 150659

To check Docker-compse install or not--

   #docker-compse version

create two directory one for mysql data base volume & other is for docker-compose code:--

Screenshot 2023-10-12 153358

This is code written in yaml language:

Screenshot 2023-10-12 171507

To view docker-compose file:

Screenshot 2023-10-12 171551

our three-tier architecture created with the help Of Docker-compose

To Run Docker-compose file .. we used

      #docker-compose up -d

we use detached because it helps us to run or launch container in background

Screenshot 2023-10-12 172026

      #docker-compose ls' is command will tell us which file is used to lauch container
      # docker-compose ps ' is command that give us info about running container from docker-compose file
      #docker-compose logs' is command used to see logs of container.

Screenshot 2023-10-12 172518

To access this docker-compose setup -->>instance public IP+Port no.(Change EC2 instance inbound rule)

This interface shows on google:-

Screenshot 2023-10-12 172957