-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
70 lines (64 loc) · 1.35 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
version: '2.1'
services:
# Apache kafka
zookeeper:
image: wurstmeister/zookeeper
container_name: zookeeper
ports:
- "2181:2181"
networks:
- cluster_network
kafka:
image: wurstmeister/kafka
container_name: kafka
# hostname: kafka-docker
ports:
- "9092"
environment:
KAFKA_ADVERTISED_HOST_NAME: 172.17.0.1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
volumes:
- /var/run/docker.sock:/var/run/docker.sock
networks:
- cluster_network
# Apache Spark
master:
image: singularities/spark
container_name: spark-master
command: start-spark master
hostname: master
ports:
- "6066:6066"
- "7070:7070"
- "8080:8080"
- "50070:50070"
networks:
- cluster_network
worker:
image: singularities/spark
container_name: spark-worker
command: start-spark worker master
environment:
SPARK_WORKER_CORES: 1
SPARK_WORKER_MEMORY: 2g
links:
- master
networks:
- cluster_network
# Apache Hbase
hbase:
image: ziedyazidi/hbase
container_name: hbase
hostname: hbase-docker
ports:
- "8081:8080"
- "2182:2182"
- "8085:8085"
- "9090:9090"
- "9095:9095"
- "16010:16010"
networks:
- cluster_network
networks:
cluster_network:
name: kafka-spark-hbase