Last active
          January 5, 2022 00:07 
        
      - 
      
- 
        Save HRKings/e08fba0659beedca7ef629a7202f9792 to your computer and use it in GitHub Desktop. 
    Kafka Template Docker Compose File
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: "3.9" | |
| services: | |
| zookeeper: | |
| container_name: zookeeper | |
| image: bitnami/zookeeper | |
| environment: | |
| ZOO_ENABLE_AUTH: true | |
| ZOO_CLIENT_USER: ${ZOO_USER:-zookeper} | |
| ZOO_CLIENT_PASSWORD: ${ZOO_PASSWORD:-password} | |
| volumes: | |
| - ./kafka/zookeper/:/bitnami | |
| networks: | |
| - kafka | |
| kafka: | |
| container_name: kafka | |
| image: bitnami/kafka | |
| volumes: | |
| - ./kafka/data/:/bitnami | |
| environment: | |
| - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181 | |
| - KAFKA_ZOOKEEPER_USER=${ZOO_USER:-zookeper} | |
| - KAFKA_ZOOKEEPER_PASSWORD=${ZOO_PASSWORD:-password} | |
| - ALLOW_PLAINTEXT_LISTENER=yes | |
| - KAFKA_LISTENERS=INTERNAL://0.0.0.0:9094,OUTSIDE://0.0.0.0:9092 | |
| - KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9094,OUTSIDE://localhost:9092 | |
| - KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,OUTSIDE:PLAINTEXT | |
| - KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL | |
| ports: | |
| - 9092:9092 | |
| depends_on: | |
| - zookeeper | |
| networks: | |
| - kafka | |
| kafdrop: | |
| container_name: kafdrop | |
| image: obsidiandynamics/kafdrop | |
| environment: | |
| KAFKA_BROKERCONNECT: kafka:9094 | |
| ports: | |
| - 19000:9000 | |
| depends_on: | |
| - kafka | |
| networks: | |
| - kafka | |
| networks: | |
| kafka: | |
| driver: bridge | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment