{"repo":"minhhungit/mongodb-cluster-docker-compose","free":true,"listed":false,"github":"https://github.com/minhhungit/mongodb-cluster-docker-compose","clone":"git clone https://github.com/minhhungit/mongodb-cluster-docker-compose.git","description":"docker-compose for mongodb cluster sharded with replication","language":"Shell","stars":559,"topics":["mongodb","mongodb-sharding-example","mongodb-replica-set","docker","docker-compose","csharp","netcore","arbiter","mongodb-cluster","mongodb-sharding"],"license":"MIT","category":"deployment-docker-iac","readme_excerpt":"MongoDB [Auto Init] Sharded Cluster with Docker Compose ========================================= Star History PSS Style (Primary -Secondary - Secondary) - Need PSA? Check here - If you need to set cluster with keyfile authentication, check here --- DeepWIKI https://deepwiki.com/minhhungit/mongodb-cluster-docker-compose 📖 Table of Contents - ❓ Mongo Components? - ✨ Install - On-liner command - Manual step by step - ✨ Enable sharding/sharding key for your database - ✅ Verify - Verify the status of the sharded cluster - Verify status of replica set for each shard - Check database status - 🔎 More commands - Normal Startup - Resetting the Cluster - Clean up docker-compose - 📺 Screenshot - 👌 Donate ^^ - 📚 Refrences WARNING (Windows & OS X) The default Docker setup on Windows and OS X uses a VirtualBox VM to host the Docker daemon. Unfortunately, the mechanism VirtualBox uses to share folders between the host system and the Docker container is not compatible with the memory mapped files used by MongoDB (see vbox bug, docs.mongodb.org and related jira.mongodb.org bug). This means that it is not possible to run a MongoDB container with the data directory mapped to the host. &#8211; Docker Hub (source here or here) --- Note: If you want to modify config files, on Windows you might need to save those file with EOL Conversion Unix (LF) mode. You can use notepad++ to do that Edit menu = EOL Conversion = Unix --- ❓ Mongo Components 🔝 Config Server (3 member replica set): configsvr01","default_branch":null,"files":null,"tree":[],"storefront":"/r/minhhungit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/minhhungit/mongodb-cluster-docker-compose/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}