We have a reference docker-compose file which will guide you through an example setup running in Kafka mode. https://downloads.mongodb.org/migrator/1.6.0/docker-compose-migrator-kafka.yml

Note that the Kafka connect runs a seperate service so I expect that the connect url would be different from the bootstrap server. The default port for Kafka connect is usually 8083. Can you confirm you’re running Kafka connect as a seperate service?

Hope this reference docker file helps.