{"id":24483698,"url":"https://github.com/omjaju18/3-tier-application-docker","last_synced_at":"2026-04-11T01:58:26.421Z","repository":{"id":273478711,"uuid":"914954707","full_name":"omjaju18/3-tier-application-docker","owner":"omjaju18","description":"Three-tier Application","archived":false,"fork":false,"pushed_at":"2025-02-22T06:34:56.000Z","size":90,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-22T07:24:55.746Z","etag":null,"topics":["docker","docker-compose","docker-container","docker-image","dockerfile","github","jenkins","jenkins-pipeline","jenkins-plugin","jenkinsfile"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/omjaju18.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}},"created_at":"2025-01-10T16:47:30.000Z","updated_at":"2025-02-22T06:35:00.000Z","dependencies_parsed_at":"2025-01-21T07:28:43.347Z","dependency_job_id":null,"html_url":"https://github.com/omjaju18/3-tier-application-docker","commit_stats":null,"previous_names":["omjaju18/3-tier-application-docker"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omjaju18%2F3-tier-application-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omjaju18%2F3-tier-application-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omjaju18%2F3-tier-application-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omjaju18%2F3-tier-application-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omjaju18","download_url":"https://codeload.github.com/omjaju18/3-tier-application-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243641241,"owners_count":20323814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["docker","docker-compose","docker-container","docker-image","dockerfile","github","jenkins","jenkins-pipeline","jenkins-plugin","jenkinsfile"],"created_at":"2025-01-21T13:12:03.891Z","updated_at":"2026-04-11T01:58:21.373Z","avatar_url":"https://github.com/omjaju18.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A simple MERN stack application \n\n### Create a network for the docker containers\n\n`docker network create demo`\n\n### Build the client \n\n```sh\ncd mern/frontend\ndocker build -t mern-frontend .\n```\n\n### Run the client\n\n`docker run --name=frontend --network=demo -d -p 5173:5173 mern-frontend`\n\n### Verify the client is running\n\nOpen your browser and type `http://localhost:5173`\n\n### Run the mongodb container\n\n`docker run --network=demo --name mongodb -d -p 27017:27017 -v ~/opt/data:/data/db mongodb:latest`\n\n### Build the server\n\n```sh\ncd mern/backend\ndocker build -t mern-backend .\n```\n\n### Run the server\n\n`docker run --name=backend --network=demo -d -p 5050:5050 mern-backend`\n\n## Using Docker Compose\n\n`docker compose up -d`\n\n## Outputs\n\n\u003cimg width=\"958\" alt=\"image\" src=\"https://github.com/user-attachments/assets/67506688-9345-4f08-9586-54c542886c17\" /\u003e\n\n\u003cimg width=\"948\" alt=\"image\" src=\"https://github.com/user-attachments/assets/bcb996ad-b7e5-45b0-b88f-74a9814dc816\" /\u003e\n\n\u003cimg width=\"959\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fc185a03-5f6c-4d9f-bc45-75795f936881\" /\u003e\n\n\u003cimg width=\"956\" alt=\"image\" src=\"https://github.com/user-attachments/assets/fd173548-eac0-4b02-bd6b-2763a022447e\" /\u003e\n\n\n## Explanation of Porject\n\n### **Project: Three-Tier Web Application Using Docker**  \n- Built a **three-tier architecture** with **React (frontend), Express.js (backend), and MongoDB (database)**.  \n- **Containerized** each component using **Dockerfiles** and managed them with **Docker Compose**.  \n- Created a **Docker network** for **secure communication** between containers.  \n- Ensured **MongoDB data persistence** using **Docker volumes**.  \n- Used **Docker Compose** to automate deployment and container orchestration.  \n- Overcame **networking issues** by using **service names instead of localhost**.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomjaju18%2F3-tier-application-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomjaju18%2F3-tier-application-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomjaju18%2F3-tier-application-docker/lists"}