docker-compose-kafka.yml 500 B

12345678910111213141516171819
  1. version: '2'
  2. services:
  3. zookeeper:
  4. image: 'docker.finogeeks.club/finochat/zookeeper'
  5. kafka:
  6. image: 'docker.finogeeks.club/finochat/kafka'
  7. ports:
  8. - 9092:9092
  9. volumes:
  10. - /mnt/data/dendrite/kafka/log:/kafka/kafka-logs-localhost
  11. environment:
  12. KAFKA_ADVERTISED_HOST_NAME: "kafka"
  13. KAFKA_DELETE_TOPIC_ENABLE: "true"
  14. KAFKA_ZOOKEEPER_CONNECT: "zookeeper:2181"
  15. KAFKA_LOG_RETENTION_HOURS: 48
  16. depends_on:
  17. - zookeeper
  18. links:
  19. - 'zookeeper'