WIP
[demos/kafka/training] / docker-compose.yml
index 2c22c7b..5400911 100644 (file)
@@ -73,14 +73,34 @@ services:
     image: juplo/toolbox
     command: sleep infinity
 
-  gateway:
-    image: juplo/sumup-gateway:1.0-SNAPSHOT
+  gateway-partition-0:
+    image: juplo/sumup-gateway-springified:1.0-SNAPSHOT
     ports:
       - 8080:8080
     environment:
       server.port: 8080
-      sumup.gateway.bootstrap-server: kafka:9092
-      sumup.gateway.client-id: gateway
+      spring-kafka.bootstrap-servers: kafka:9092
+      spring.kafka.client-id: gateway-partition-0
+      sumup.gateway.partition: 0
+
+  gateway-partition-0:
+    image: juplo/sumup-gateway-springified:1.0-SNAPSHOT
+    ports:
+      - 8081:8080
+    environment:
+      server.port: 8080
+      spring-kafka.bootstrap-servers: kafka:9092
+      spring.kafka.client-id: gateway-partition-1
+      sumup.gateway.partition: 1
+
+  gateway-hashed:
+    image: juplo/sumup-gateway-springified:1.0-SNAPSHOT
+    ports:
+      - 8082:8080
+    environment:
+      server.port: 8080
+      spring-kafka.bootstrap-servers: kafka:9092
+      spring.kafka.client-id: gateway-hashed
 
   consumer:
     image: juplo/toolbox