-
Notifications
You must be signed in to change notification settings - Fork 12
/
docker-compose_spark.yml
79 lines (72 loc) · 1.95 KB
/
docker-compose_spark.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
version: '3'
services:
mspass-dbmanager:
image: mspass/mspass
volumes:
- "${PWD}:/home"
command: dockerize -wait tcp://mspass-shard-0:27017 -wait tcp://mspass-shard-1:27017 -timeout 240s /usr/sbin/start-mspass.sh
ports:
- 27017:27017
depends_on:
- mspass-shard-0
- mspass-shard-1
environment:
MSPASS_ROLE: dbmanager
MSPASS_SHARD_LIST: mspass-shard-0/mspass-shard-0:27017 mspass-shard-1/mspass-shard-1:27017
MONGODB_PORT: 27017
mspass-shard-0:
hostname: mspass-shard-0
image: mspass/mspass
volumes:
- "${PWD}:/home"
environment:
MSPASS_ROLE: shard
MSPASS_SHARD_ID: 0
MONGODB_PORT: 27017
mspass-shard-1:
hostname: mspass-shard-1
image: mspass/mspass
volumes:
- "${PWD}:/home"
environment:
MSPASS_ROLE: shard
MSPASS_SHARD_ID: 1
MONGODB_PORT: 27017
mspass-scheduler:
image: mspass/mspass
volumes:
- "${PWD}:/home"
ports:
- 7077:7077
environment:
MSPASS_ROLE: scheduler
MSPASS_SCHEDULER: spark
SPARK_MASTER_PORT: 7077
mspass-worker:
image: mspass/mspass
volumes:
- "${PWD}:/home"
command: dockerize -wait tcp://mspass-scheduler:7077 -timeout 240s /usr/sbin/start-mspass.sh
depends_on:
- mspass-scheduler
environment:
MSPASS_ROLE: worker
MSPASS_SCHEDULER: spark
MSPASS_SCHEDULER_ADDRESS: mspass-scheduler
mspass-frontend:
image: mspass/mspass
volumes:
- "${PWD}:/home"
command: dockerize -wait tcp://mspass-dbmanager:27017 -wait tcp://mspass-scheduler:7077 -timeout 240s /usr/sbin/start-mspass.sh
ports:
- 8888:8888
depends_on:
- mspass-dbmanager
- mspass-scheduler
environment:
MSPASS_ROLE: frontend
MSPASS_SCHEDULER: spark
MSPASS_SCHEDULER_ADDRESS: mspass-scheduler
MSPASS_DB_ADDRESS: mspass-dbmanager
MSPASS_JUPYTER_PWD: mspass
JUPYTER_PORT: 8888