Giriş
wurstmeister image'ları aynı bitnami image'ları gibi confluentinc image'larına göre daha sade ve daha hafif. Yerel ortamda geliştirme için daha uygunlar
Şöyle yaparız
version: "3"services:zookeeper:image: 'wurstmeister/zookeeper:latest'ports:- '2181:2181'environment:- ALLOW_ANONYMOUS_LOGIN=yeskafka:image: 'wurstmeister/kafka:latest'ports:- '9092:9092'environment:- KAFKA_BROKER_ID=1- KAFKA_LISTENERS=PLAINTEXT://:9092- KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181- ALLOW_PLAINTEXT_LISTENER=yesdepends_on:- zookeeper
Örnek
Şöyle yaparız
version: '3.7' services: zookeeper: image: wurstmeister/zookeeper container_name: zookeeper ports: - "2181:2181" profiles: - indexer kafka: image: wurstmeister/kafka:latest container_name: kafka environment: KAFKA_MESSAGE_MAX_BYTES: 32768 KAFKA_CREATE_TOPICS: "account-domain-event" KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka:9092" KAFKA_LISTENERS: "PLAINTEXT://0.0.0.0:9092" KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 ports: - "9092:9092" profiles: - indexer
No comments:
Post a Comment