X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=docker-compose.yml;h=f4b271f37b7c55f9bbd8c89b67b9039834b44f47;hb=697c70a88a663da11b8cfdfb8ea4e7c5c4aac72d;hp=2c22c7b83909d0ee3a6e11a6a5b743bfbe69342e;hpb=656d24e02b7e42404a508946885009b59b39e1ee;p=demos%2Fkafka%2Ftraining diff --git a/docker-compose.yml b/docker-compose.yml index 2c22c7b..f4b271f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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-0 + sumup.gateway.partition: 0 + + gateway-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-1 + sumup.gateway.partition: 1 + + gateway: + 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 consumer: image: juplo/toolbox