command: sleep infinity
producer:
- image: juplo/rest-producer:1.0-SNAPSHOT
+ image: juplo/rest-producer-json:1.0-SNAPSHOT
ports:
- 8080:8080
environment:
producer.topic: test
peter:
- image: juplo/rest-client:1.0-SNAPSHOT
- environment:
- server.port: 8080
- rest-client.baseUrl: http://producer:8080
- rest-client.username: peter
- rest-client.throttle-ms: 1000
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 777 | http -v producer:8080/peter;
+ sleep 1;
+ done
+ "
klaus:
- image: juplo/rest-client:1.0-SNAPSHOT
- environment:
- server.port: 8080
- rest-client.baseUrl: http://producer:8080
- rest-client.username: klaus
- rest-client.throttle-ms: 1100
-
- beate:
- image: juplo/rest-client:1.0-SNAPSHOT
- environment:
- server.port: 8080
- rest-client.baseUrl: http://producer:8080
- rest-client.username: beate
- rest-client.throttle-ms: 900
-
- franz:
- image: juplo/rest-client:1.0-SNAPSHOT
- environment:
- server.port: 8080
- rest-client.baseUrl: http://producer:8080
- rest-client.username: franz
- rest-client.throttle-ms: 800
-
- uschi:
- image: juplo/rest-client:1.0-SNAPSHOT
- environment:
- server.port: 8080
- rest-client.baseUrl: http://producer:8080
- rest-client.username: uschi
- rest-client.throttle-ms: 1200
+ image: juplo/toolbox
+ command: >
+ bash -c "
+ while [[ true ]];
+ do
+ echo 666 | http -v producer:8080/klaus;
+ sleep 1;
+ done
+ "
consumer:
image: juplo/toolbox