-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.21 KB
/
docker-compose.yml
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
version: '2'
services:
zookeeper:
image: wurstmeister/zookeeper
container_name: zk
restart: always
ports:
- "2181:2181"
kafka:
image: wurstmeister/kafka
container_name: kfk
restart: always
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9999:9999"
expose:
- "9093"
environment:
KAFKA_BROKER_ID: 0
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://192.168.1.39:9092
KAFKA_LISTENERS: PLAINTEXT://0.0.0.0:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_JMX_OPTS: "-Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Djava.rmi.server.hostname=192.168.1.39 -Dcom.sun.management.jmxremote.rmi.port=9999"
JMX_PORT: 9999
KAFKA_CREATE_TOPICS: "test:1:1"
volumes:
- /var/run/docker.sock:/var/run/docker.sock
kafka-eagle:
image: gui66497/kafka_eagle
container_name: ke
restart: always
depends_on:
- kafka
ports:
- "8048:8048"
environment:
ZKSERVER: "zookeeper:2181"
volumes:
- ./system-config.properties:/kafka-eagle/conf/system-config.properties
- ./logs:/kafka-eagle/logs