{"id":28378007,"url":"https://github.com/candisio/mongo-replica-set","last_synced_at":"2025-06-26T21:32:57.877Z","repository":{"id":43728679,"uuid":"266903238","full_name":"CandisIO/mongo-replica-set","owner":"CandisIO","description":"A replica set of MongoDB in Docker Container","archived":false,"fork":false,"pushed_at":"2023-09-17T17:15:25.000Z","size":8,"stargazers_count":32,"open_issues_count":4,"forks_count":50,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-05-30T01:39:28.333Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/CandisIO.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}},"created_at":"2020-05-25T23:54:28.000Z","updated_at":"2024-10-14T02:04:53.000Z","dependencies_parsed_at":"2023-01-18T14:46:03.390Z","dependency_job_id":null,"html_url":"https://github.com/CandisIO/mongo-replica-set","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CandisIO/mongo-replica-set","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandisIO%2Fmongo-replica-set","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandisIO%2Fmongo-replica-set/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandisIO%2Fmongo-replica-set/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandisIO%2Fmongo-replica-set/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CandisIO","download_url":"https://codeload.github.com/CandisIO/mongo-replica-set/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CandisIO%2Fmongo-replica-set/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262145201,"owners_count":23265892,"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":[],"created_at":"2025-05-30T01:35:18.028Z","updated_at":"2025-06-26T21:32:57.865Z","avatar_url":"https://github.com/CandisIO.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MongoDB Replica Set\n\nA Replica Set of MongoDB running in a Docker container\n\n## Not For Production\n\nThe key motivation for this image is to have a **ready-made** replica set of MongoDB running inside docker container for CI tests and local development.\n\nTo run the container, execute the following command:\n\n```shell\ndocker run -d -p 27017:27017 -p 27018:27018 -p 27019:27019 candis/mongo-replica-set\n```\n\nWait for 30 to 35 seconds in order to properly start all database instances and replica-set initialization.\n\n## Configuration\n\nAdditionally, you can pass an env variable called `HOST` when running the container to configure the replica's hostname in docker. By default, it uses `localhost`.\n\nOnce ready, the replica-set can be accessed using the following connection string:\n\n```shell\nmongodb://localhost:27017,localhost:27018,localhost:27019/?replicaSet=rs0\u0026readPreference=primary\u0026ssl=false\n```\n\nIf you're connecting from your host machine, you might need to set a new alias within `/etc/hosts`:\n\n```\n# /etc/hosts\n127.0.0.1 HOST # where HOST is the value passed as env variable to the container\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandisio%2Fmongo-replica-set","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcandisio%2Fmongo-replica-set","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcandisio%2Fmongo-replica-set/lists"}