Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2e768eb

Browse files
committedMar 31, 2025··
Fix docker-compose
1 parent 2873f6d commit 2e768eb

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed
 

‎dsl/docker-compose.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,27 @@ services:
4848
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
4949
PORT: 9021
5050

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+
5164
kafka-streams-processing-error-handling-dsl:
5265
image: michelin/kafka-streams-processing-error-handling:dsl-1.0.0
5366
hostname: kafka-streams-processing-error-handling-dsl
5467
container_name: kafka-streams-processing-error-handling-dsl
5568
networks:
5669
- kafka-streams-processing-error-handling-network
5770
depends_on:
58-
- broker
71+
- init-kafka
5972
restart: unless-stopped
6073
environment:
6174
BOOTSTRAP_SERVERS: 'broker:29092'

‎processor-api/docker-compose.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,27 @@ services:
4848
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
4949
PORT: 9021
5050

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+
5164
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
5366
hostname: kafka-streams-processing-error-handling-papi
5467
container_name: kafka-streams-processing-error-handling-papi
5568
networks:
5669
- kafka-streams-processing-error-handling-network
5770
depends_on:
58-
- broker
71+
- init-kafka
5972
restart: unless-stopped
6073
environment:
6174
BOOTSTRAP_SERVERS: 'broker:29092'

0 commit comments

Comments
 (0)
Please sign in to comment.