-
Notifications
You must be signed in to change notification settings - Fork 74
/
docker-compose.yml
135 lines (125 loc) · 3.16 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
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: "2.1"
services:
zookeeper:
image: wurstmeister/zookeeper:latest
container_name: zookeeper
expose:
- "2181"
volumes:
- kafka_zookeeper:/opt/zookeeper-3.4.13/data
networks:
kafkanet:
ipv4_address: 172.25.0.11
kafka1:
image: wurstmeister/kafka:2.12-2.2.0
container_name: kafka1
command: [start-kafka.sh]
expose:
- "8080"
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 172.25.0.12
KAFKA_ZOOKEEPER_CONNECT: 172.25.0.11:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_OPTS: -javaagent:/prometheus/jmx_prometheus_javaagent-0.3.1.jar=8080:/prometheus/kafka-0-8-2.yml
volumes:
- ./kafka/prometheus:/prometheus
- kafka_kafka1:/opt/kafka_2.12-2.2.0/logs
networks:
kafkanet:
ipv4_address: 172.25.0.12
depends_on:
- "zookeeper"
kafka2:
image: wurstmeister/kafka:2.12-2.2.0
container_name: kafka2
command: [start-kafka.sh]
expose:
- "8080"
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 172.25.0.13
KAFKA_ZOOKEEPER_CONNECT: 172.25.0.11:2181
KAFKA_ADVERTISED_PORT: 9092
KAFKA_OPTS: -javaagent:/prometheus/jmx_prometheus_javaagent-0.3.1.jar=8080:/prometheus/kafka-0-8-2.yml
volumes:
- ./kafka/prometheus:/prometheus
- kafka_kafka2:/opt/kafka_2.12-2.2.0/logs
depends_on:
- "zookeeper"
networks:
kafkanet:
ipv4_address: 172.25.0.13
kafka_manager:
image: hlebalbau/kafka-manager:1.3.3.18
container_name: kafka_manager
expose:
- "9000"
environment:
ZK_HOSTS: "172.25.0.11:2181"
APPLICATION_SECRET: "random-secret"
command: -Dpidfile.path=/dev/null
depends_on:
- "zookeeper"
- "kafka1"
- "kafka2"
networks:
kafkanet:
ipv4_address: 172.25.0.14
prometheus:
image: prom/prometheus:v2.8.1
container_name: prometheus
expose:
- "9090"
volumes:
- ./prometheus/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/flink.rules.yml:/etc/prometheus/flink.rules.yml
depends_on:
- "zookeeper"
- "kafka1"
- "kafka2"
networks:
kafkanet:
ipv4_address: 172.25.0.15
grafana:
image: grafana/grafana:6.1.1
container_name: grafana
expose:
- "3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=password
volumes:
- ./grafana/provisioning/:/etc/grafana/provisioning/
depends_on:
- "prometheus"
networks:
kafkanet:
ipv4_address: 172.25.0.16
zeppelin:
image: apache/zeppelin:0.8.1
hostname: zeppelin
container_name: zeppelin
expose:
- "8080"
- "8443"
- "4040"
volumes:
- ./zeppelin/datadrive:/datadrive
- ./zeppelin/pyspark-notebooks:/zeppelin/notebook
- ./zeppelin/zeppelin-interpreters/interpreter.json:/zeppelin/conf/interpreter.json
networks:
kafkanet:
ipv4_address: 172.25.0.19
networks:
kafkanet:
name: kafkanet
driver: bridge
ipam:
driver: default
config:
- subnet: 172.25.0.0/16
gateway: 172.25.0.1
volumes:
kafka_zookeeper:
kafka_kafka1:
kafka_kafka2: