docker-compose.yml 726 B

1234567891011121314151617181920212223242526272829303132333435
  1. # just for dev, fun, playing around
  2. version: "3"
  3. services:
  4. zookeeper:
  5. image: bitnami/zookeeper:latest
  6. ports:
  7. - 2181:2181
  8. expose:
  9. - 2181
  10. environment:
  11. "ALLOW_ANONYMOUS_LOGIN": "yes"
  12. networks:
  13. - kafka-network
  14. kafka:
  15. image: bitnami/kafka:latest
  16. depends_on:
  17. - zookeeper
  18. ports:
  19. - 9092:9092
  20. expose:
  21. - 9092
  22. links:
  23. - zookeeper
  24. environment:
  25. "ALLOW_PLAINTEXT_LISTENER": "yes"
  26. "KAFKA_CFG_ZOOKEEPER_CONNECT": "zookeeper:2181"
  27. "KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE": "true"
  28. "KAFKA_CFG_ADVERTISED_LISTENERS": "PLAINTEXT://localhost:9092"
  29. networks:
  30. - kafka-network
  31. networks:
  32. kafka-network:
  33. driver: bridge