#creates all zookeeper, kafka and application docker
docker-compose up -d
#get list of all containers and ID for producer and consumer
docker ps
docker-compose down
docker-compose build
docker-compose up
#produce to topic
docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-producer.sh --broker-list localhost:9092 --topic my-topic
#Consume topic
docker exec -it 89d4f551353f /opt/kafka/bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic my-topic --from-beginning