File tree Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Expand file tree Collapse file tree 2 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,27 @@ services:
48
48
CONFLUENT_METRICS_TOPIC_REPLICATION : 1
49
49
PORT : 9021
50
50
51
+ init-kafka :
52
+ image : confluentinc/cp-kafka:7.7.0
53
+ hostname : init-kafka
54
+ container_name : init-kafka
55
+ networks :
56
+ - kafka-streams-processing-error-handling-network
57
+ depends_on :
58
+ - broker
59
+ entrypoint : ['/bin/bash', '-c']
60
+ command : |
61
+ 'cub kafka-ready -b broker:29092 1 300 && \
62
+ kafka-topics --bootstrap-server broker:29092 --create --topic delivery_booked_topic'
63
+
51
64
kafka-streams-processing-error-handling-dsl :
52
65
image : michelin/kafka-streams-processing-error-handling:dsl-1.0.0
53
66
hostname : kafka-streams-processing-error-handling-dsl
54
67
container_name : kafka-streams-processing-error-handling-dsl
55
68
networks :
56
69
- kafka-streams-processing-error-handling-network
57
70
depends_on :
58
- - broker
71
+ - init-kafka
59
72
restart : unless-stopped
60
73
environment :
61
74
BOOTSTRAP_SERVERS : ' broker:29092'
Original file line number Diff line number Diff line change @@ -48,14 +48,27 @@ services:
48
48
CONFLUENT_METRICS_TOPIC_REPLICATION : 1
49
49
PORT : 9021
50
50
51
+ init-kafka :
52
+ image : confluentinc/cp-kafka:7.7.0
53
+ hostname : init-kafka
54
+ container_name : init-kafka
55
+ networks :
56
+ - kafka-streams-processing-error-handling-network
57
+ depends_on :
58
+ - broker
59
+ entrypoint : ['/bin/bash', '-c']
60
+ command : |
61
+ 'cub kafka-ready -b broker:29092 1 300 && \
62
+ kafka-topics --bootstrap-server broker:29092 --create --topic delivery_booked_topic'
63
+
51
64
kafka-streams-processing-error-handling-papi :
52
- image : michelin/kafka-streams-processing-error-handling:papi -1.0.0
65
+ image : michelin/kafka-streams-processing-error-handling:processor-api -1.0.0
53
66
hostname : kafka-streams-processing-error-handling-papi
54
67
container_name : kafka-streams-processing-error-handling-papi
55
68
networks :
56
69
- kafka-streams-processing-error-handling-network
57
70
depends_on :
58
- - broker
71
+ - init-kafka
59
72
restart : unless-stopped
60
73
environment :
61
74
BOOTSTRAP_SERVERS : ' broker:29092'
You can’t perform that action at this time.
0 commit comments