{"id":16550745,"url":"https://github.com/sujaykundu777/mern-docker","last_synced_at":"2025-03-16T19:33:03.150Z","repository":{"id":39397479,"uuid":"205825540","full_name":"sujaykundu777/mern-docker","owner":"sujaykundu777","description":"Jumpstart your MERN Full Stack App development  :pilot:","archived":false,"fork":false,"pushed_at":"2023-01-07T22:53:36.000Z","size":2412,"stargazers_count":97,"open_issues_count":33,"forks_count":73,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-02-27T12:45:08.808Z","etag":null,"topics":["docker","docker-compose","express","mern","mongodb","react"],"latest_commit_sha":null,"homepage":"https://dev.to/sujaykundu777/utilizing-the-power-of-docker-while-building-mern-apps-using-mern-docker-4olb","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/sujaykundu777.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}},"created_at":"2019-09-02T09:42:57.000Z","updated_at":"2024-11-07T01:49:08.000Z","dependencies_parsed_at":"2023-02-08T03:02:48.317Z","dependency_job_id":null,"html_url":"https://github.com/sujaykundu777/mern-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujaykundu777%2Fmern-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujaykundu777%2Fmern-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujaykundu777%2Fmern-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sujaykundu777%2Fmern-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sujaykundu777","download_url":"https://codeload.github.com/sujaykundu777/mern-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243826797,"owners_count":20354221,"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","express","mern","mongodb","react"],"created_at":"2024-10-11T19:35:18.607Z","updated_at":"2025-03-16T19:33:02.833Z","avatar_url":"https://github.com/sujaykundu777.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MERN-Docker - Starter for building MERN Apps using Docker\n\n![MERN DOCKER diagram](https://github.com/sujaykundu777/mern-docker/blob/master/3-tier-diagram.png?raw=true)\n### Prerequisites:\n\nYou must have Docker Installed in your System !\n\n### How to run the App :\n\nArticle - ![Tutorial](https://dev.to/sujaykundu777/utilizing-the-power-of-docker-while-building-mern-apps-using-mern-docker-4olb)\n\n##### In Development Mode :\n\nFirst copy the content of **docker-compose-dev.yml** to **docker-compose.yml**\n\nand also copy the content of **server/src/index.dev.js** to **server/src/index.js**\n\nRun the app using :\n\n`$ docker-compose up --build --remove-orphans`\n\nor\n\n`$ docker-compose up -d`\n\nAbove command will start the services on (-d) detach mode (similar like running the app in background)\n\nThen you can check the status of the containers by running:\n\n`$ docker ps`\n\nThe App should be App :\n\nvisit client : http://localhost:3000\n\nvisit server : http://localhost:8080\n\nTo check the status of the running containers :\n\n`docker-compose ps`\n\n##### In Production Mode :\n\nFirst copy the content of **docker-compose-prod.yml** to **docker-compose.yml**\n\nand also copy the content of **server/src/index.prod.js** to **server/src/index.js**\n\nRun the app using :\n\n` $ docker-compose up --build -remove-orphans`\n\nThe App should be up at http://localhost:8080\n\n### Build the image for server :\ndocker build -t myapp-server:1 .\ndocker images\ndocker run --name \"myapp-server\" -p 80:8080 myapp-server:1\ndocker ps","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujaykundu777%2Fmern-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsujaykundu777%2Fmern-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsujaykundu777%2Fmern-docker/lists"}