{"id":20179119,"url":"https://github.com/pratikshinde55/docker-three_tier-architecture","last_synced_at":"2026-03-03T09:32:37.366Z","repository":{"id":226428016,"uuid":"695862492","full_name":"Pratikshinde55/Docker-Three_Tier-Architecture","owner":"Pratikshinde55","description":"Three Tier Architecture using Docker.  Create Blogging Site using WordPress, MySQL as DataBase for WordPress and Docker custom Network.","archived":false,"fork":false,"pushed_at":"2025-03-01T07:43:07.000Z","size":65,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-21T17:46:03.666Z","etag":null,"topics":["aws-ec2","docker","docker-container","docker-network","docker-network-driver","mysql-database","wordpress"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pratikshinde55.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-09-24T13:12:38.000Z","updated_at":"2025-03-01T07:43:10.000Z","dependencies_parsed_at":"2025-01-13T16:49:04.455Z","dependency_job_id":"d4672f37-8633-432a-bbb7-1c362ac805ee","html_url":"https://github.com/Pratikshinde55/Docker-Three_Tier-Architecture","commit_stats":null,"previous_names":["pratikshinde55/three-tier-architecture"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Pratikshinde55/Docker-Three_Tier-Architecture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Three_Tier-Architecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Three_Tier-Architecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Three_Tier-Architecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Three_Tier-Architecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pratikshinde55","download_url":"https://codeload.github.com/Pratikshinde55/Docker-Three_Tier-Architecture/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pratikshinde55%2FDocker-Three_Tier-Architecture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30039885,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-03T06:58:30.252Z","status":"ssl_error","status_checked_at":"2026-03-03T06:58:15.329Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws-ec2","docker","docker-container","docker-network","docker-network-driver","mysql-database","wordpress"],"created_at":"2024-11-14T02:25:13.424Z","updated_at":"2026-03-03T09:32:37.279Z","avatar_url":"https://github.com/Pratikshinde55.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Three Tier Architecture using Docker\nCreate Blogging Site using Docker manual method.\n\n- Set-up:\n\nI use AWS EC2 Instance for this work. The EC2 Amazon machine is Amazon-linux.\n\n- What is Three-tier Architecture:\n  \n 1. For Blogging Site I use \"WordPress\".\n 2. For DataBase to the Wordpress I use \"MySQL\".\n 3. For Network I use own customised \"Docker network\".\n\n## Step: 1 [Install Docker \u0026 Start Docker Services]\nLaunch EC2 instance and install docker inside and start docker Service:\n\nDocker install command:\n    \n    yum install docker -y \n\nStart Docker Service command:\n   \n    systemctl enable  docker --now \n\nCheck Docker Status:\n\n    systemctl status docker\n      \n![Screenshot 2023-08-30 181908](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/1bd38c3c-06dc-436f-9780-00f32455229c)\n\n## Step: 2 [Create Custom Docker Network]\ncreate own net name as \"psnet\"\n\nSubnet range `10.0.0.1/16` in CIDR format.\n        \n![Screenshot 2023-08-30 185447](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/e265d278-0646-488d-ae0d-de9c46bcf87c)\n\nCommand for check docker network list:\n    \n    docker network ls\n\nDocker network create command:\n\n    docker network create --driver bridge --subnet 10.0.0.1/16  psnet\n        \n## Step: 3 [Launch MySQL Container using own Network]\nCreate database with own driver (database- container name)...also provide required enviromental variable\n ![Screenshot 2023-08-30 185342](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/98939e39-6331-4145-9fee-be84232e668e)\n\nLaunch MySQL container using custom networks \u0026 adding environmental variables \u0026 Attach Host folder(Mount volume) Default folder of MySQL storage is `/var/lib/mysql`:\n\n    docker run -dit --name database --network psnet -v /mydata:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=pratik55  -e MYSQL_DATABASE=mydatabase  -e MYSQL_USER=jack  -e MYSQL_PASSWORD=jack11 mysql\n\nInspect command for check:(here we see our Subnet range`(10.0.0.1/16)` to our given database container)\n\n    docker inspect database   \n                 \n![Screenshot 2023-08-30 185033](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/a6c68e2e-cfea-4aa7-8f79-5d41ba5caa22)\n\n![Screenshot 2023-08-30 185149](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/3f1270fe-8fb0-47e1-85d7-66445d06fec4)\n\nHere, check provided Subnet range.\n\n## Step: 4 [Launch Wordpress Container using own Newtwork]\nLaunch wordpress and uase PATTING to make outside world connection,As port number of container is `80`.\n\nCommand for check list port numbers on system:\n              \n    netstat -tnlp\n          \n![Screenshot 2023-08-30 185418](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/b82e4635-d464-44b2-9729-0fc29d532f45)\n\nLanuch Wordpress container using custom network:\n\n    docker run -dit --name mywordpress --network psnet -p 1234:80 wordpress\n\nWordpress store all iformation of login with database info place in `/var/www/html` there is file that `wp-config.php` (here we can also able to attach Host folder that mount volume)\n\n    docker run -dit --name mywordpress -v /wordstorage:/var/www/html --network psnet -p 1234:80 wordpress\n    \nCan also check MYWORDPRESS has our subnet range by command on above screenshots.(step no.3)\n    \n    docker inspect mywordpress\n\n## Step: 5 [Edit Inbound rule/ Firewall]\nEC2 Intance has Firewall which cannot be connected by outside world, so we can modify Inbound rule(All traffic allowed)\n\n![Screenshot 2023-08-30 182129](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/4c596a4b-39f4-49fa-911f-5dc0a4cc01a1)\n\nSubsteps:\n\n1. EC2 Dashboard\n2. Celect securtity option\n3. Go inside Security groups\n4. Select \"edit inbound rule\"\n5. Delete defult rule and new rule\n6. custom TCP -\u003e\u003e \"ALL TRAFIC\", ANYWHERE IPv4\n7. Save rule\n\n## Step: 6 [Access Wordpress from Browser]\nInstance public + our port number that provide in wordpress contanier.\n\nTo access wordpresss from browser,need EC2 instance public IP Address+Port no. given to wordpresss container.\n\n![Screenshot 2023-08-30 182811](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/90f63389-dbfc-40aa-84bb-82d28772da1b)\n\nTo get wordpress interface on google ,provide details that provided in the form of enviromental variable during \"database\" caintainer launch\n\nhttp://65.2.146.158:1234    \u003c\u003c------- see interface(This site does not work as instance is terminated now)\n\n![Screenshot 2023-08-30 182954](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/6ffc643c-d1bb-47fb-a6e4-4e376b263aa9)\n\n\n![Screenshot 2023-08-30 183151](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/b8c3d0e1-9a34-4a66-970e-236fe770f9b4)\n\n## Step: 7 [Fill Info]\nCreate username and password to create blog on wordpress:\n\n![Screenshot 2023-08-30 183243](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/af521986-471a-4b56-a6f7-079cc889c2cf)\n\n![Screenshot 2023-08-30 183447](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/e159eb84-9f1e-4158-8c41-75376ec2cda0)\n\n## Step: 8 [Create Blog page]\nOn Wordpress Dashboard-\u003ecreate Post-\u003eAdd Content-\u003ePublish-\u003eCopy link and paste in the browser.\n\n![Screenshot 2023-08-30 183516](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/552edbcb-1dd5-4467-b99d-328a5bac4c53)\n\n![Screenshot 2023-08-30 184349](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/9cf35c01-a9fb-40a5-9931-187d04b24787)\n\n![Screenshot 2023-08-30 184434](https://github.com/Pratikshinde55/Three-Tier-Architecture/assets/145910708/c76e18ff-f6ea-4eba-b4dd-e18ce00331d7)\n\n\n### This is Three Tier Architecture using Docker Overview:\n1. WordPress-Blogging Site\n2. MySQL-Database \n3. PSNet-Own Bridge driver\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikshinde55%2Fdocker-three_tier-architecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpratikshinde55%2Fdocker-three_tier-architecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpratikshinde55%2Fdocker-three_tier-architecture/lists"}