This repository can be used as part of the "Horizontal partitioning in MongoDB" article.
docker-compose.yml
= 3 MongoDB shards, a configuration server and a routerbooks.json
= sample datainit-config.js
= config file for the configuration serverinit-router.js
= config file for the routerinit-shard1.js
= config file for shard1init-shard2.js
= config file for shard2init-shard3.js
= config file for shard3
Run docker-compose up -d
, then configure all services. See the "Horizontal partitioning in MongoDB" article.