docker-compose.yaml 984 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. version: '2'
  2. services:
  3. zookeeper:
  4. image: wurstmeister/zookeeper
  5. ports:
  6. - 2181:2181
  7. networks:
  8. kafka:
  9. aliases:
  10. - zookeeper
  11. - zk
  12. kafka:
  13. image: wurstmeister/kafka:0.10.0.1
  14. hostname: kafka
  15. environment:
  16. KAFKA_ADVERTISED_HOST_NAME: localhost
  17. KAFKA_ADVERTISED_PORT: 9092
  18. KAFKA_HEAP_OPTS: "-Xms256M"
  19. KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
  20. ports:
  21. - '9092:9092'
  22. volumes:
  23. - /var/run/docker.sock:/var/run/docker.sock
  24. networks:
  25. kafka:
  26. aliases:
  27. - kafka
  28. manager:
  29. ports:
  30. - "9000:9000"
  31. environment:
  32. ZK_HOSTS: "zk:2181"
  33. image: sheepkiller/kafka-manager
  34. networks:
  35. kafka:
  36. aliases:
  37. - manager
  38. networks:
  39. kafka: