-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
37 lines (34 loc) · 1.09 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
version: "2.2"
services:
zookeeper:
image: zookeeper:3.6.2
environment:
- ZOO_MY_ID=1
volumes:
- zkdata:/data
- zklogs:/datalog
kafka:
image: wurstmeister/kafka:2.13-2.7.0
restart: unless-stopped
ports:
- "9092:9092"
- "9998:9998"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_LISTENERS: EXT://:9092,INT://:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INT:PLAINTEXT,EXT:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: EXT://127.0.0.1:9092,INT://:9093
KAFKA_INTER_BROKER_LISTENER_NAME: INT
KAFKA_AUTO_CREATE_TOPICS_ENABLE: "false"
KAFKA_CREATE_TOPICS: "v1.raw:3:1,v1.hits:3:1,v1.dlq:3:1"
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=127.0.0.1 -Djava.net.preferIPv4Stack=true -Dcom.sun.management.jmxremote.rmi.port=9998"
JMX_PORT: 9998
volumes:
- kafka:/kafka
depends_on:
- zookeeper
volumes:
zkdata:
zklogs:
kafka: