-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yaml
67 lines (67 loc) · 2.36 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: '3.7'
services:
zookeeper:
image: cp.icr.io/cp/ibm-eventstreams-kafka:10.5.0
container_name: zookeeper
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
kafka:
image: cp.icr.io/cp/ibm-eventstreams-kafka:10.5.0
container_name: kafka
command: [
"sh", "-c",
"bin/kafka-server-start.sh config/server.properties --override listeners=$${KAFKA_LISTENERS} \
--override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} \
--override listener.security.protocol.map=$${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP} \
--override inter.broker.listener.name=$${KAFKA_INTER_BROKER_LISTENER_NAME} \
--override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT} \
--override offsets.topic.replication.factor=$${KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR}"
]
depends_on:
- zookeeper
ports:
- "9092:9092"
- "29092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: INTERNAL://kafka:29092,EXTERNAL://localhost:9092
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
KAFKA_LISTENERS: EXTERNAL://0.0.0.0:9092,INTERNAL://kafka:29092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_INTER_BROKER_LISTENER_NAME: INTERNAL
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
addTopics:
image: cp.icr.io/cp/ibm-eventstreams-kafka:10.5.0
depends_on:
- kafka
entrypoint: [ "bash", "-c", "/opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 --create --if-not-exists --replication-factor 1 --partitions 1 --topic items
&& /opt/kafka/bin/kafka-topics.sh --bootstrap-server kafka:29092 --create --if-not-exists --replication-factor 1 --partitions 1 --topic item.inventory"]
kafdrop:
image: obsidiandynamics/kafdrop
container_name: kafdrop
restart: "no"
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: "kafka:29092"
depends_on:
- kafka
simulator:
image: quay.io/ibmcase/eda-store-simulator:0.0.10
container_name: simulator
depends_on:
- kafka
hostname: simulator
ports:
- "8081:8080"
environment:
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
APP_TARGET_MESSAGING: Kafka
USER_CERT_PWD: ""
KAFKA_CERT_PWD: ""