Preparing for the next version polling-outbox-3
[demos/kafka/outbox] / docker-compose.yml
index d04c665..8f0c392 100644 (file)
@@ -2,8 +2,35 @@ version: "3"
 
 services:
 
+  zookeeper:
+    image: confluentinc/cp-zookeeper:6.0.1
+    ports:
+      - 2181:2181
+    environment:
+      ZOOKEEPER_CLIENT_PORT: 2181
+
+  kafka:
+    image: confluentinc/cp-kafka:6.0.1
+    ports:
+      - 9092:9092
+    environment:
+      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
+      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
+      KAFKA_ADVERTISED_LISTENERS: INSIDE://kafka:9093,OUTSIDE://localhost:9092
+      KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
+      KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
+    depends_on:
+      - zookeeper
+
+  kafkacat:
+    image: confluentinc/cp-kafkacat:6.0.1
+    command: "kafkacat -C -b kafka:9093 -q -t outbox -K:"
+    tty: true
+    depends_on:
+      - kafka
+
   jdbc:
-    image: juplo/data-jdbc:polling-outbox-2-SNAPSHOT
+    image: juplo/data-jdbc:polling-outbox-2
     ports:
       - 8080:8080
     environment:
@@ -11,6 +38,15 @@ services:
     depends_on:
       - postgres
 
+  outbox:
+    image: juplo/outbox-delivery:polling-outbox-3-SNAPSHOT
+    environment:
+      spring.profiles.active: prod
+      logging.level.de.juplo.kafka.outbox: DEBUG
+    depends_on:
+      - postgres
+      - kafka
+
 
   postgres:
     image: postgres:13