Merge der Upgrades für Confluent/Spring-Boot (Branch 'producer-übungen')
authorKai Moritz <kai@juplo.de>
Fri, 22 Jul 2022 18:44:47 +0000 (20:44 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 22 Jul 2022 18:44:47 +0000 (20:44 +0200)
1  2 
docker-compose.yml

@@@ -7,56 -7,20 +7,56 @@@ services
      ports:
        - 2181:2181
  
 -  kafka:
 +  kafka-1:
-     image: confluentinc/cp-kafka:7.0.2
+     image: confluentinc/cp-kafka:7.1.3
      environment:
        KAFKA_BROKER_ID: 1
        KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
-     image: confluentinc/cp-kafka:7.0.2
 +      KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9081
 +      KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-1:9092, LOCALHOST://localhost:9081
 +      KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
 +      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
 +      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
 +      KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
 +    ports:
 +      - 9081:9081
 +    depends_on:
 +      - zookeeper
 +
 +  kafka-2:
++    image: confluentinc/cp-kafka:7.1.3
 +    environment:
 +      KAFKA_BROKER_ID: 2
 +      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
        KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9082
 -      KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka:9092, LOCALHOST://localhost:9082
 +      KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-2:9092, LOCALHOST://localhost:9082
        KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
        KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
 -      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
 +      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
        KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
      ports:
        - 9092:9082
        - 9082:9082
-     image: confluentinc/cp-kafka:7.0.2
 +    networks:
 +      default:
 +        aliases:
 +          - kafka
 +    depends_on:
 +      - zookeeper
 +
 +  kafka-3:
++    image: confluentinc/cp-kafka:7.1.3
 +    environment:
 +      KAFKA_BROKER_ID: 3
 +      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
 +      KAFKA_LISTENERS: DOCKER://:9092, LOCALHOST://:9083
 +      KAFKA_ADVERTISED_LISTENERS: DOCKER://kafka-3:9092, LOCALHOST://localhost:9083
 +      KAFKA_INTER_BROKER_LISTENER_NAME: DOCKER
 +      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: DOCKER:PLAINTEXT, LOCALHOST:PLAINTEXT
 +      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
 +      KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
 +    ports:
 +      - 9083:9083
      depends_on:
        - zookeeper