This repository contains a ready-made docker-compose file including all the necessary setup scripts to bootstrap the complete environment used in the following blog post:
NOTE: This is by no means a production-ready configuration, yet suffices just fine for local development purposes.
The minimum viable cluster for demo purposes is made of 4 MongoDB nodes only:
- 1 config node
- 2 single node replica set shards
- 1 router node
It's important to understand that any reasonable deployment would consist of at least: a 3 node replica set for configuration servers, a 3 node replica set for each of the shards and typically more than just a single route node.
To keep it simple, the Apache Kafka environment is a minimalistic one and only composed of:
- 1 Zookeeper node
- 1 Kafka broker
- 1 Kafka Connect node
-
run
docker-compose up
to bring up the demo environment and launch all docker containers -
wait a few moments before you run
sh bootstrap-mdb.sh
in order to setup the MongoDB cluster and initialize a sample data model -
docker-compose down
to tear down the demo environment and stop all docker containers