-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
39 lines (35 loc) · 1000 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
39 lines (35 loc) · 1000 Bytes
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
version: '3.9'
services:
zookeeper:
build:
context: ./apache-kafka/zookeeper
dockerfile: ./Dockerfile
ports: ["2181:2181"]
environment:
ZOOKEEPER_LOG_DIR: ./zookeeper_logDir
ZOOKEEPER_DATA_DIR: ./zookeeper_dataDir
ZOOKEEPER_PORT: 2181
restart: always
kafka:
build:
context: ./apache-kafka/kafka
dockerfile: ./Dockerfile
ports: ["9092:9092"]
environment:
JMX_PORT: 9999
KAFKA_BROKER_ID: 1
KAFKA_LOG_DIR: ./kafka_logDir
KAFKA_DATA_DIR: ./kafka_dataDir
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_NUM_PARTITIONS: 2
restart: always
kafdrop:
image: obsidiandynamics/kafdrop
restart: "no"
ports:
- "9000:9000"
environment:
KAFKA_BROKERCONNECT: "kafka:9092"
JVM_OPTS: "-Xms16M -Xmx48M -Xss180K -XX:-TieredCompilation -XX:+UseStringDeduplication -noverify"