-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
204 lines (192 loc) · 4.92 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
version: '3'
services:
master:
image: spark-master
build: ./docker/master
ports:
- "8080:8080"
- "4040:4040"
- "7077:7077"
- "80:80"
environment:
MASTER: ${MASTER:-spark://master:7077}
INIT_DAEMON_STEP: setup_spark
SPARK_CONF_DIR: /conf
networks:
- ds
volumes:
- ${PWD}/../data/scala_history:/root/.scala_history
- ./conf/master:/conf
- ../data:/data
- ../apps:/apps
worker:
image: spark-worker
build: ./docker/worker
depends_on:
- master
ports:
- "8081:8081"
environment:
- "SPARK_MASTER=spark://master:7077"
- SPARK_CONF_DIR=/conf
networks:
- ds
volumes:
- ./conf/worker:/conf
- ../data:/data
- ../apps:/apps
zeppelin:
image: apache/zeppelin:0.8.0
hostname: zeppelin
networks:
- ds
environment:
ZEPPELIN_PORT: 8090
MASTER: spark://master:7077
ZEPPELIN_LOG_DIR: "/logs"
ZEPPELIN_NOTEBOOK_DIR: "/notebook"
ZEPPELIN_WEBSOCKET_MAX_TEXT_MESSAGE_SIZE: 102400000
ZEPPELIN_INTERPRETER_OUTPUT_LIMIT: 10240000
SPARK_HOME: /spark/
SPARK_CONF_DIR: /conf
links:
- master
expose:
- 5432
ports:
- 8090:8090
- 8091:8091
volumes:
- ../data:/data
- ../apps:/apps
- ../zeppelin/logs:/logs
- ../zeppelin/notebook:/notebook
- ./conf/zeppelin:/conf
zookeeper:
image: confluentinc/cp-zookeeper:latest
ports:
- "2181:2181"
hostname: zookeeper
environment:
ZOOKEEPER_CLIENT_PORT: 2181
networks:
- ds
kafka:
image: confluentinc/cp-kafka:latest
hostname: kafka
ports:
- "9092:9092"
- "29092:29092"
links:
- zookeeper
depends_on:
- zookeeper
environment:
ADVERTISED_HOST_NAME: "kafka"
KAFKA_INTER_BROKER_LISTENER_NAME: "PLAINTEXT"
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: "EXTERNAL:PLAINTEXT,PLAINTEXT:PLAINTEXT"
KAFKA_ADVERTISED_LISTENERS: "EXTERNAL://localhost:29092,PLAINTEXT://kafka:9092"
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_DELETE_RETENTION_MS: 5000
KAFKA_LOG_CLEANER_DELETE_RETENTION_MS: 5000
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
networks:
- ds
volumes:
- ../apps/confluent-5.2.1:/confluent
schema-registry:
image: confluentinc/cp-schema-registry:latest
ports:
- "8081:8081"
links:
- zookeeper
- kafka
depends_on:
- zookeeper
- kafka
environment:
SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: zookeeper:2181
SCHEMA_REGISTRY_HOST_NAME: schema-registry
networks:
- ds
kafka_connect:
image: confluentinc/cp-kafka-connect:latest
ports:
- "8083:8083"
links:
- zookeeper
- kafka
- schema-registry
depends_on:
- zookeeper
- kafka
- schema-registry
environment:
# networking
CONNECT_BOOTSTRAP_SERVERS: "kafka:9092"
CONNECT_REST_ADVERTISED_HOST_NAME: "kafka_connect"
CONNECT_REST_PORT: "8083"
# kafka
CONNECT_GROUP_ID: "kc"
CONNECT_CONFIG_STORAGE_TOPIC: "kc-config"
CONNECT_OFFSET_STORAGE_TOPIC: "kc-offset"
CONNECT_STATUS_STORAGE_TOPIC: "kc-status"
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
# converters
CONNECT_KEY_CONVERTER: "io.confluent.connect.avro.AvroConverter"
CONNECT_VALUE_CONVERTER: "io.confluent.connect.avro.AvroConverter"
CONNECT_KEY_CONVERTER_SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: "http://schema-registry:8081"
CONNECT_INTERNAL_KEY_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
CONNECT_INTERNAL_VALUE_CONVERTER: "org.apache.kafka.connect.json.JsonConverter"
networks:
- ds
schema-registry-ui:
image: landoop/schema-registry-ui:latest
hostname: schema-registry-ui
ports:
- "8001:8000"
environment:
SCHEMAREGISTRY_URL: http://schema-registry:8081/
ALLOW_SCHEMA_DELETION: "true"
PROXY: "true"
depends_on:
- schema-registry
networks:
- ds
kafka-topics-ui:
image: landoop/kafka-topics-ui:latest
hostname: kafka-topics-ui
ports:
- "8000:8000"
environment:
KAFKA_REST_PROXY_URL: "http://rest-proxy:8082/"
PROXY: "true"
depends_on:
- zookeeper
- kafka
- schema-registry
- rest-proxy
networks:
- ds
rest-proxy:
image: confluentinc/cp-kafka-rest:latest
depends_on:
- zookeeper
- kafka
- schema-registry
ports:
- 8082:8082
hostname: rest-proxy
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: 'kafka:9092'
KAFKA_REST_LISTENERS: "http://0.0.0.0:8082"
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081'
networks:
- ds
networks:
ds:
external: true