https://github.com/pratikshinde55/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.
https://github.com/pratikshinde55/docker-compose-wordpress_mysql-blogging
aws-ec2 docker docker-automation docker-compose docker-compose-files docker-network-driver mysql-database wordpress
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/pratikshinde55/docker-compose-wordpress_mysql-blogging
- Owner: Pratikshinde55
- Created: 2023-10-15T08:22:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-26T11:56:18.000Z (5 months ago)
- Last Synced: 2025-01-13T16:50:33.819Z (4 months ago)
- Topics: aws-ec2, docker, docker-automation, docker-compose, docker-compose-files, docker-network-driver, mysql-database, wordpress
- Homepage:
- Size: 88.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Three-tier Architecture of Blogging site(WordPress, MySQL, Docker network) using Docker Automation that docker-compose.
Global Blogging Made Easy with Docker and WordPress.- Set-up:
I use AWS EC2 Instance(AMI- Amazon linux) as Operating System for Docker and then i Install docker-compose on it.
- What is Three-tier Architecture:
1. For Blogging Site I use "WordPress".
2. For DataBase to the Wordpress I use "MySQL".
3. For Network I use own customised "Docker network".## Step: 1 [Install Docker & start Docker Service]
Docker-comopse work on Docker Engine, So we need to install Docker & Start Docker ServicesInstall Docker Command:
yum install docker
Start Docker service Command:
systemctl start docker
## Step:2- [Install Docker-compose]
### docker-compose:
docker-compose helps to make Automation in Docker Container, docker-compose is use for Automation, we creates Automation file by using yaml language,
docker-compose file must be in YAML language."docker-compose.yml" is standard file name for docker-compose file.
- Following steps for installation:
For download docker-compose search on google "docker-compose standalone":
docker-compose Standalone Install Link- [Docker-compose-download-link](https://docs.docker.com/compose/install/standalone/)

curl downloads the Docker Compose binary for Linux into the /usr/local/bin/ directory:
curl -SL https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose
Following command gives the downloaded docker-compose file executable permissions:
chmod +x /usr/local/bin/docker-compose
chmod: This is the command to change file permissions in Unix-like operating systems.
+x: This option adds execute permissions to the file. It allows the user to run the file as a program.
/usr/local/bin/docker-compose: This is the path to the docker-compose file.

To check Docker-compse install or not use command:
docker-compse version
## Step:2- [docker-compose.yml automation file]
Create two directories One for mysql data base volume & Second for docker-compose code:-
This is code written in yaml language: (docker-compose DSL is Yaml)

To view docker-compose file:

To Run Docker-compose file the command is:
docker-compose up -d
We use (-d) detached because it helps us to run or launch Container in background- Three-tier Architecture created with the help of Docker-compose
Command will tell us which file is used to lauch container:
docker-compose lsCommand that give us info about running container from docker-compose file:
docker-compose ps
Command used to see logs of container:
docker-compose logs
## Step:3- [Access Wordpress from Browser]
To access this docker-compose setup -->>instance public IP+Port no.(Change EC2 instance inbound rule)This interface shows on Google:-
