How to setup Kafka using docker compose
Step 1 : Create a yaml file
touch docker-compose.yaml
Step 2 : Put the below contents in the docker compose file.
Step 3 : Start the service
docker-compose -f docker-compose.yaml up
If you want to start the service in background mode then you can use the below command
docker-compose -f docker-compose.yaml up -d