VOLUME /tmp
COPY target/*.jar /opt/app.jar
COPY target/libs /opt/libs
-ENTRYPOINT [ "java", "-jar", "/opt/app.jar", "kafka:9092", "test", "my-group" ]
+ENTRYPOINT [ "java", "-jar", "/opt/app.jar" ]
CMD [ "DCKR" ]
image: juplo/simple-producer:1.0-SNAPSHOT
command: producer
- consumer:
+ consumer-1:
image: juplo/simple-consumer:1.0-SNAPSHOT
- command: consumer
+ command: kafka:9092 test my-group consumer-1
+
+ consumer-2:
+ image: juplo/simple-consumer:1.0-SNAPSHOT
+ command: [ kafka:9092, test, my-group, consumer-2 ]
+
+ consumer-3:
+ image: juplo/simple-consumer:1.0-SNAPSHOT
+ command: [ kafka:9092, test, my-group, consumer-3 ]
+
+ spikzettel:
+ image: juplo/toolbox
+ command: >
+ bash -c '
+ kafka-console-consumer \
+ --bootstrap-server kafka:9092 \
+ --topic __consumer_offsets --from-beginning \
+ --formatter "kafka.coordinator.group.GroupMetadataManager\$$OffsetsMessageFormatter"
+ '