Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.44 KB

DEPLOYMENT.md

File metadata and controls

59 lines (40 loc) · 1.44 KB

Deploying indexing component

  1. Save .env.example file as indexer.env and configure the variables appropriately

  2. Build docker images

    docker-compose up --build --no-start
  3. Start Mongo DB replica sets

    docker-compose start mongors1n1 mongocfg1
  4. 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
  5. 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
  6. 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
  7. Start Mongo DB router

    docker-compose start mongos1
  8. 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
  9. Populate the Database with geo partitioning data (Country contours)

    docker-compose run --rm indexer node "dist/util/populateFeatureGeometry.js"
  10. Start Indexing service

    docker-compose start indexer