X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=docker-compose.yml;h=ad2c72267e208a9392c852c27db1b43228b80058;hb=4b1bc898676f97fde2215bc5b22f747df12276e0;hp=274752921799b255e8e2becf20eb1890b0628277;hpb=d1b5b725743e48da9de584ad55d9d8f3b37557a1;p=demos%2Fkafka%2Ftraining diff --git a/docker-compose.yml b/docker-compose.yml index 2747529..ad2c722 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,14 +1,14 @@ version: '3.2' services: zookeeper: - image: confluentinc/cp-zookeeper:7.0.2 + image: confluentinc/cp-zookeeper:7.1.3 environment: ZOOKEEPER_CLIENT_PORT: 2181 ports: - 2181:2181 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 @@ -24,7 +24,7 @@ services: - zookeeper kafka-2: - image: confluentinc/cp-kafka:7.0.2 + image: confluentinc/cp-kafka:7.1.3 environment: KAFKA_BROKER_ID: 2 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 @@ -45,7 +45,7 @@ services: - zookeeper kafka-3: - image: confluentinc/cp-kafka:7.0.2 + image: confluentinc/cp-kafka:7.1.3 environment: KAFKA_BROKER_ID: 3 KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 @@ -73,19 +73,30 @@ services: image: juplo/toolbox command: sleep infinity - producer: + acks-all: image: juplo/rest-producer:1.0-SNAPSHOT ports: - - 8080:8080 + - 8082:8080 environment: producer.bootstrap-server: kafka:9092 - producer.client-id: producer + producer.client-id: acks-all producer.topic: test + producer.acks: all + + acks-1: + image: juplo/rest-producer:1.0-SNAPSHOT + ports: + - 8081:8880 + environment: + producer.bootstrap-server: kafka:9092 + producer.client-id: acks-1 + producer.topic: test + producer.acks: 1 consumer: - image: juplo/counting-consumer:1.0-SNAPSHOT + image: juplo/endless-consumer:1.0-SNAPSHOT ports: - - 8081:8081 + - 8000:8081 environment: consumer.bootstrap-server: kafka:9092 consumer.client-id: my-group