image: juplo/toolbox
command: sleep infinity
- bart:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune chalkboard
- | head -1
- | http -v producer:8080/bart;
- echo;
- sleep 1;
- done"
-
- nerd:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune computers
- | grep -v '^[[:space:]]*--'
- | http -v producer:8080/nerd;
- echo;
- sleep 1;
- done"
-
- riddler:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune riddles
- | awk -F':' '/^Q/ { print $$2 }'
- | http -v producer:8080/riddler;
- echo;
- sleep 1;
- sleep 1;
- done"
-
- kraut:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune de
- | http -v producer:8080/kraut;
- echo;
- sleep 1;
- done"
-
- poet:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune songs-poems
- | http -v producer:8080/poet;
- echo;
- sleep 1;
- done"
-
- linux:
- image: juplo/wordcount--fortune:1.0.0
- command: bash -c "
- while [ true ];
- do
- /usr/games/fortune linux
- | http -v producer:8080/linux;
- echo;
- sleep 1;
- done"
-
producer:
image: juplo/rest-producer:1.0-SNAPSHOT
ports:
producer.topic: test
consumer-1:
- image: juplo/wordcount:1.0-SNAPSHOT
+ image: juplo/sumup-consumer:1.0-SNAPSHOT
ports:
- 8081:8080
environment:
spring.data.mongodb.database: juplo
consumer-2:
- image: juplo/wordcount:1.0-SNAPSHOT
+ image: juplo/sumup-consumer:1.0-SNAPSHOT
ports:
- 8082:8080
environment: