{"id":20580057,"url":"https://github.com/iyashwantsaini/docker_production_workflow","last_synced_at":"2026-05-08T17:34:27.634Z","repository":{"id":112236359,"uuid":"289354311","full_name":"iyashwantsaini/docker_production_workflow","owner":"iyashwantsaini","description":"This repository contains Docker Production Grade Workflow with Steps","archived":false,"fork":false,"pushed_at":"2020-09-22T15:01:09.000Z","size":222,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-04T13:28:49.453Z","etag":null,"topics":["docker","docker-compose","production","travis-ci","workflow"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iyashwantsaini.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-08-21T19:59:25.000Z","updated_at":"2025-03-04T17:15:23.000Z","dependencies_parsed_at":"2023-06-25T23:55:54.210Z","dependency_job_id":null,"html_url":"https://github.com/iyashwantsaini/docker_production_workflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/iyashwantsaini/docker_production_workflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_production_workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_production_workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_production_workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_production_workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyashwantsaini","download_url":"https://codeload.github.com/iyashwantsaini/docker_production_workflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_production_workflow/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32790508,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"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":["docker","docker-compose","production","travis-ci","workflow"],"created_at":"2024-11-16T06:19:53.709Z","updated_at":"2026-05-08T17:34:27.611Z","avatar_url":"https://github.com/iyashwantsaini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003ch1 align=\"center\"\u003e\n  \u003cbr\u003e\n  \u003ca href=\"\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/meyash/docker_production_workflow/master/logo.png\" alt=\"logo\" width=\"200\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  Docker Production Grade Workflow\n  \u003cbr\u003e\n\u003c/h1\u003e\n\n\u003ch4 align=\"center\"\u003eDocker is a set of platform as a service products that use OS-level virtualization to deliver software in packages called containers. Containers are isolated from one another and bundle their own software, libraries and configuration files; they can communicate with each other through well-defined channels.\u003c/h4\u003e\n\n## Phases\n\n- DEV\n  - develop, add ,test\n  - DockerFile.dev\n    - for development\n    - first remove node_modules from root\n    - this will make build faster\n      ```\n      \u003e docker build -f DockerFile.dev .\n      ```\n    - now Run Server\n      ```\n      \u003e docker run -it -p 3000:3000 image_id\n      ```\n    - to pass args in container\n      ```\n      \u003e docker attach container_id\n      ```\n      ```\n      \u003e docker exec -it container_id sh \n      ```\n- TEST\n  - travis testing\n- PROD\n  - Deploy to cloud services like Elastic Beanstalk\n  - DockerFile\n    - for production\n    ```\n    \u003e docker build .\n    ```\n\n## nginx\n\n- nginx is a web server to serve our files\n- We'll use a multistep build process\n  - Run npm build\n  - Use nginx  \n  - Copy over result of npm run build\n  - Start nginx\n\n## travis-ci\n\n- tell travis we need docker\n- build img using DockerFile.dev\n- tell travis to run test suite\n- tell travis to deploy code to aws\n\n## Elastic Beanstalk\n\n- create web server env for docker platform\n\n## Mapping\n\n- Docker Volumes\n  - Stores references instead of snapshots\n  - Whenever any change occurs it automatically passes to container\n- New Docker Running Command (to enable mapping)\n  - run in GitBash\n  - \"-v $(pwd):/app\" : mapping current dir to /app in container\n  - \"-v /app/node_modules\" : bookmarking node_modules as we dont have node_modules in local env but they are still in container\n    ```\n    \u003e docker run -it -p 3000:3000 -v /app/node_modules -v $(pwd):/app image_id\n    ```\n- Using Docker Compose\n    ```\n    \u003e docker-compose up\n    ```\n\n## Branches\n\n- master\n  - clean working copy of code\n  - changes here are automatically deployed\n- feature\n  - we make changes here\n  - testing here\n  - feature addition here\n  - pull and push only from and to this branch\n  - pull request to master when all tests passes from travis-ci\n\n## Setup Project Base\n\n```\n\u003e npm install -g create-react-app\n\u003e create-react-app workflow\n\u003e cd workflow\n```\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm start`\n\nRuns the app in the development mode.\u003cbr /\u003e\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\u003cbr /\u003e\nYou will also see any lint errors in the console.\n\n### `npm test`\n\nLaunches the test runner in the interactive watch mode.\u003cbr /\u003e\nSee the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\u003cbr /\u003e\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.\u003cbr /\u003e\nYour app is ready to be deployed!\n\nSee the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.\n\n### `npm run eject`\n\n**Note: this is a one-way operation. Once you `eject`, you can’t go back!**\n\nIf you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.\n\nInstead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.\n\nYou don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.\n\n## License\n\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](/LICENSE)\n\nBy [Yashwant](https://github.com/meyash)\n\n## Contributors\n\n\u003cimg src=\"https://avatars3.githubusercontent.com/u/21121279?s=460\u0026u=f0450278b2b569c4443ab8ee03f9dff7015da5bf\u0026v=4\" width=\"100px;\" alt=\"toofff\"/\u003e\u003cbr /\u003e\n\n\u003ca href=\"https://meyash.xyz/\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://meyash.xyz/assets/icons/siteicon.png\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://meyash.xyz/resume.pdf\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/libreoffice.svg\" width=\"25\"\u003e\u003c/a\u003e \n\u003ca href=\"https://www.linkedin.com/in/meyash21/\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/linkedin.svg\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/meyash21\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.instagram.com/meyash21/\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/instagram.svg\" width=\"25\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.codechef.com/users/meyash21\" style=\"margin-right:30px;\"\u003e\u003cimg src=\"https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/codechef.svg\" width=\"25\"\u003e\u003c/a\u003e  ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_production_workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyashwantsaini%2Fdocker_production_workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_production_workflow/lists"}