{"id":20580058,"url":"https://github.com/iyashwantsaini/docker_multiple_workflow","last_synced_at":"2026-05-02T18:36:29.821Z","repository":{"id":112236344,"uuid":"289554112","full_name":"iyashwantsaini/docker_multiple_workflow","owner":"iyashwantsaini","description":"Docker Multi Container Deployment Workflow","archived":false,"fork":false,"pushed_at":"2020-08-23T18:52:01.000Z","size":664,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-16T22:29:47.016Z","etag":null,"topics":["amazon-web-services","docker","docker-compose","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-22T19:33:19.000Z","updated_at":"2020-08-23T18:52:04.000Z","dependencies_parsed_at":"2023-05-11T21:17:25.625Z","dependency_job_id":null,"html_url":"https://github.com/iyashwantsaini/docker_multiple_workflow","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_multiple_workflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_multiple_workflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_multiple_workflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iyashwantsaini%2Fdocker_multiple_workflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iyashwantsaini","download_url":"https://codeload.github.com/iyashwantsaini/docker_multiple_workflow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242206006,"owners_count":20089252,"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":["amazon-web-services","docker","docker-compose","travis-ci","workflow"],"created_at":"2024-11-16T06:19:53.991Z","updated_at":"2026-05-02T18:36:29.759Z","avatar_url":"https://github.com/iyashwantsaini.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Docker Multi Container Workflow \n\n## Architecture\n\n![multi](./README/multi.PNG)\n![process](./README/process.PNG)\n![prod](./README/prod.PNG)\n\n- Postgres -\u003e for permanent storage\n- Redis -\u003e for in memory storage\n- worker -\u003e calculates fibonacci\n\n## nginx\n\n- default.conf\n- helps in mappings/routing\n- incoming/outgoing requests redirection to frontend and backend\n- serves local files\n- backend is at 5000 PORT\n- frontend is at 3000 PORT\n- we'll listen on PORT 80\n\n## travis\n\n- run tests\n- build prod images\n- login to docker hub\n- pushes to docker hub\n- tells aws to use these images from hub\n\n## docker hub\n\n- contains our public and private repos\n- [Link](https://hub.docker.com/u/meyash)\n\n## elastic\n\n- now we have many docker files\n- so we now have to explicitely tell aws to pull files and run\n- File : Dockerrun.aws.json\n- this file is for amazon elastic container service\n- AWS\n  - choose multicontainer docker in env builder\n  - use AWS Elastic Cache for redis (Recommended)\n    - go to elastic cache\n    - go to redis -\u003e create\n    - node type -\u003e t2.micro, replicas -\u003e none\n    - check both subnets\n  - use AWS Relational Database Service for postgres (Recommended)\n    - go to rds\n    - create postgres db\n    - save the username, instance name, pass used while creation\n  - create security group (firewall rules) for vpc\n    - inbound rules\n      - ports -\u003e 5432-6379\n      - source -\u003e our sec group\n    - in redis cache\n      - modify -\u003e add sec group\n    - in rds\n      - instances -\u003e db -\u003e modify -\u003e add sec group\n      - apply immediately\n  - configuration  \n    - instances -\u003e modify -\u003e add sec group\n    - software -\u003e modify -\u003e add env vars from dockercompose file into here\n      - REDIS_HOST -\u003e go to redis cache : put in alias endpoint from there\n      - PGHOST -\u003e got to rds : put in endpoint from there\n      - all others as saved by us earlier while creating rds and redis cache\n\n## Dockerrun.aws.json\n\n- hostname : service name defines in dockerfile\n- essential\n  - atleast 1 must be essential\n  - if essential container fails, all others are closed automatically\n- memory\n  - ram req for service\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_multiple_workflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiyashwantsaini%2Fdocker_multiple_workflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiyashwantsaini%2Fdocker_multiple_workflow/lists"}