Slightly modified version of the official MongoDB Kafka Connector tutorial which can be found here.
Most of the containers used by the official tutorial are not usable on architectures other than amd64
so some crucial components such as Kafka Connect and Kafka itself are based on other images here:
- Kafka: wurstmeister/kafka-docker
- Kafka Connect: OneCricketeer/apache-kafka-connect-docker
Additionally there is a web ui for both Kafka (http://localhost:8080) and MongoDB (http://localhost:8081) available.
- Build images:
docker-compose build
- Start containers:
./start.sh
- Create a document in
kafka-connect-test.source
and watch:kafka-connect-test.sink
kafka-connect-test.sink-cdc