-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
97 lines (96 loc) · 2.67 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
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
version: '2.3'
services:
pd0:
image: pingcap/pd:latest
ports:
- "2379:2379"
volumes:
- ./config/pd.toml:/pd.toml:ro
- ./data:/data
command:
- --name=pd0
- --client-urls=http://0.0.0.0:2379
- --peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://pd0:2379
- --advertise-peer-urls=http://pd0:2380
- --initial-cluster=pd0=http://pd0:2380
- --data-dir=/data/pd0
- --config=/pd.toml
restart: on-failure
tikv0:
image: pingcap/tikv:latest
ports:
- "20160:20160"
volumes:
- ./config/tikv.toml:/tikv.toml:ro
- ./data:/data
command:
- --addr=0.0.0.0:20160
- --advertise-addr=tikv0:20160
- --data-dir=/data/tikv0
- --pd=pd0:2379
- --config=/tikv.toml
depends_on:
- "pd0"
restart: on-failure
tidb:
image: pingcap/tidb:latest
ports:
- "4000:4000"
- "10080:10080"
volumes:
- ./config/tidb.toml:/tidb.toml:ro
command:
- --store=tikv
- --path=pd0:2379
- --config=/tidb.toml
- -L=warn
depends_on:
- "tikv0"
restart: on-failure
tispark-master:
#build: ./tispark
image: mars/tispark:latest
command:
- /opt/spark/sbin/start-master.sh
volumes:
- ./config/spark-defaults.conf:/opt/spark/conf/spark-defaults.conf:ro
- ./jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:/opt/spark/jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:ro
environment:
SPARK_MASTER_PORT: 7077
SPARK_MASTER_WEBUI_PORT: 8080
ports:
- "7077:7077"
- "8080:8080"
depends_on:
- "tikv0"
restart: on-failure
tispark-slave0:
#build: ./tispark
image: mars/tispark:latest
command:
- /opt/spark/sbin/start-slave.sh
- spark://tispark-master:7077
volumes:
- ./config/spark-defaults.conf:/opt/spark/conf/spark-defaults.conf:ro
- ./jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:/opt/spark/jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:ro
environment:
SPARK_WORKER_WEBUI_PORT: 38081
ports:
- "38081:38081"
depends_on:
- tispark-master
restart: on-failure
zeppelin:
image: mars/zeppelin:latest
ports:
- "80:8080"
volumes:
- ./data/notebook:/opt/zeppelin/notebook
- ./config/spark-defaults.conf:/opt/spark/conf/spark-defaults.conf:ro
- ./jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:/opt/spark/jars/tispark-core-2.1-SNAPSHOT-jar-with-dependencies.jar:ro
environment:
SPARK_MASTER: "spark://tispark-master:7077"
MASTER: "spark://tispark-master:7077"
depends_on:
- tispark-master