-
Save
.env.example
file asindexer.env
and configure the variables appropriately -
Build docker images
docker-compose up --build --no-start
-
Start Mongo DB replica sets
docker-compose start mongors1n1 mongocfg1
-
Login into a config node and initiate a replica set (execute command from
mongodb/scripts/mongors1conf.js
in the mongo shell)docker exec -it indexer-mongocfg1 mongo
-
Login into a node from each shard and initiate a replica set (execute command from
mongodb/scripts/mongors1.js
in the mongo shell)docker exec -it indexer-mongors1n1 mongo
-
Login into a primary node from each shard and create shard local admin user (execute command from
mongodb/scripts/mongo-AddShardAdmin.js
in the mongo shell)docker exec -it indexer-mongors1n1 mongo
-
Start Mongo DB router
docker-compose start mongos1
-
Login into a router node and configure sharding and authentication (execute command from
mongodb/scripts/mongos.js
in the mongo shell)docker exec -it indexer-mongos1 mongo
-
Populate the Database with geo partitioning data (Country contours)
docker-compose run --rm indexer node "dist/util/populateFeatureGeometry.js"
-
Start Indexing service
docker-compose start indexer