{"id":20355640,"url":"https://github.com/geekeast/mongo-cluster-compose","last_synced_at":"2026-05-01T22:34:59.143Z","repository":{"id":124182385,"uuid":"352520481","full_name":"GeekEast/mongo-cluster-compose","owner":"GeekEast","description":"Compose mongodb cluster using docker","archived":false,"fork":false,"pushed_at":"2021-03-31T01:32:35.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-31T06:48:28.494Z","etag":null,"topics":["docker-compose","mongo","mongo-replica-set"],"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/GeekEast.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":"2021-03-29T04:55:57.000Z","updated_at":"2021-03-31T01:32:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"d9d4dff4-8d83-4a58-bd8f-05c7c302372c","html_url":"https://github.com/GeekEast/mongo-cluster-compose","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GeekEast/mongo-cluster-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekEast%2Fmongo-cluster-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekEast%2Fmongo-cluster-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekEast%2Fmongo-cluster-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekEast%2Fmongo-cluster-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeekEast","download_url":"https://codeload.github.com/GeekEast/mongo-cluster-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekEast%2Fmongo-cluster-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32515838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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-compose","mongo","mongo-replica-set"],"created_at":"2024-11-14T23:13:34.024Z","updated_at":"2026-05-01T22:34:59.078Z","avatar_url":"https://github.com/GeekEast.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Create Mongo Cluster using Docker\n\n\n### Set Replica Sync Delay\n```javascript\n// local/mongo/init-cluster.js\n// ...\ncfg.members[1].slaveDelay = 30; //seconds\n// ...\n```\n\n### Replica Mode\n- **create** stack\n```sh\nsh stack.sh build\n```\n- **destroy** stack\n```sh\nsh stack.sh destroy\n```\n\n### Accessing using Node.js\n```sh\nyarn                        # install deps\nyarn initd                  # seed data via primary node\nyarn index                  # query using secondary nodes\n```\n\n\u003c!-- I will add the sharded version in future --\u003e\n\n\n### References\n- [Learn Docker](https://github.com/willitscale/learning-docker/tree/master/tutorial-12)\n- [Docker boilerplates](https://github.com/drginm/docker-boilerplates/tree/master/mongodb-replicaset)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekeast%2Fmongo-cluster-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeekeast%2Fmongo-cluster-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeekeast%2Fmongo-cluster-compose/lists"}