Check the guide at https://pulsar.apache.org/docs/next/getting-started-docker-compose/ Might be of help