"$1" = "build"
]]
then
- docker-compose rm -svf adder
+ docker-compose rm -svf adder-1 adder-2
- mvn -D skipTests clean install || exit
+ mvn clean install || exit
else
echo "Using image existing images:"
docker image ls $IMAGE
environment:
server.port: 8080
sumup.requests.bootstrap-server: kafka:9092
- sumup.requests.client-id: requests
+ sumup.requests.client-id: requests-1
- adder:
- image: juplo/sumup-adder:1.0-SNAPSHOT
+ requests-2:
+ image: juplo/sumup-requests:1.0-SNAPSHOT
ports:
- 8082:8080
- logging.level.org.apache.kafka.clients.consumer: DEBUG
+ environment:
+ server.port: 8080
+ sumup.requests.bootstrap-server: kafka:9092
+ sumup.requests.client-id: requests-2
+
+ adder-1:
+ image: juplo/sumup-adder:1.0-SNAPSHOT
+ ports:
+ - 8091:8080
+ environment:
+ server.port: 8080
+ sumup.adder.bootstrap-server: kafka:9092
+ sumup.adder.client-id: adder-1
+ sumup.adder.commit-interval: 3s
+ spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017
+ spring.data.mongodb.database: juplo
+
+ adder-2:
+ image: juplo/sumup-adder:1.0-SNAPSHOT
+ ports:
+ - 8092:8080
environment:
server.port: 8080
sumup.adder.bootstrap-server: kafka:9092
- sumup.adder.client-id: adder
+ sumup.adder.client-id: adder-2
+ sumup.adder.commit-interval: 3s
spring.data.mongodb.uri: mongodb://juplo:training@mongo:27017
spring.data.mongodb.database: juplo
- logging.level.org.apache.kafka.clients.consumer: DEBUG
peter:
image: juplo/toolbox