File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,24 @@ services:
29
29
file : ../docker-compose.yml
30
30
service : queue
31
31
zookeeper :
32
- image : confluent /zookeeper
32
+ image : wurstmeister /zookeeper
33
33
ports :
34
34
- " 2181:2181"
35
35
environment :
36
36
zk_id : " 1"
37
37
kafka :
38
- image : confluent /kafka
38
+ image : wurstmeister /kafka
39
39
container_name : tc-projects-kafka
40
40
depends_on :
41
41
- zookeeper
42
42
ports :
43
43
- " 9092:9092"
44
+ environment :
45
+ KAFKA_ADVERTISED_LISTENERS : INSIDE://kafka:9093,OUTSIDE://localhost:9092
46
+ KAFKA_LISTENERS : INSIDE://kafka:9093,OUTSIDE://0.0.0.0:9092
47
+ KAFKA_LISTENER_SECURITY_PROTOCOL_MAP : INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
48
+ KAFKA_INTER_BROKER_LISTENER_NAME : INSIDE
49
+ KAFKA_ZOOKEEPER_CONNECT : zookeeper:2181
44
50
kafka-client :
45
51
build : ./kafka-client
46
52
depends_on :
@@ -63,7 +69,7 @@ services:
63
69
- kafka-client
64
70
environment :
65
71
- PORT=3000
66
- - KAFKA_URL=kafka:9092
72
+ - KAFKA_URL=kafka:9093
67
73
- JWT_TOKEN_SECRET=secret
68
74
- VALID_ISSUERS="[\"https://topcoder-newauth.auth0.com/\",\"https://api.topcoder-dev.com\"]"
69
75
project-processor-es :
@@ -82,7 +88,7 @@ services:
82
88
- kafka-client
83
89
environment :
84
90
- PORT=5000
85
- - KAFKA_URL=kafka:9092
91
+ - KAFKA_URL=kafka:9093
86
92
- ES_HOST=esearch:9200
87
93
tc-notifications-reset-db :
88
94
extends :
Original file line number Diff line number Diff line change 1
- From confluent /kafka
1
+ From wurstmeister /kafka
2
2
WORKDIR /app/
3
3
COPY topics.txt .
4
4
COPY create-topics.sh .
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
while read topic; do
4
- /usr/ bin/kafka-topics --create --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic $topic
4
+ /opt/kafka/ bin/kafka-topics.sh --create --zookeeper zookeeper:2181 --partitions 1 --replication-factor 1 --topic $topic
5
5
done < topics.txt
You can’t perform that action at this time.
0 commit comments