Running Kafka in Docker is easy with Testcontainers. There is a Testcontainers module providing integration with Kafka and the KafkaContainer abstraction for your code.
Just add it the same way as you added Redis and set the spring.kafka.bootstrap-servers system property.
Hint 1:
Some containers expose helper methods. Check if there is one on KafkaContainer which might help you.
Hint 2:
You can start several containers in parallel by doing: