forked from mspass-team/mspass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
102 lines (95 loc) · 2.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
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
version: '3.7'
services:
mspass-dbmanager:
image: mspass/mspass
volumes:
- "${PWD}/:/home"
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
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 60s
retries: 5
start_period: 5s
mspass-shard-0:
hostname: mspass-shard-0
image: mspass/mspass
volumes:
- "${PWD}/:/home"
environment:
MSPASS_ROLE: shard
MSPASS_SHARD_ID: 0
MONGODB_PORT: 27017
SHARD_DB_PATH: scratch
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 60s
retries: 5
start_period: 5s
mspass-shard-1:
hostname: mspass-shard-1
image: mspass/mspass
volumes:
- "${PWD}/:/home"
environment:
MSPASS_ROLE: shard
MSPASS_SHARD_ID: 1
MONGODB_PORT: 27017
SHARD_DB_PATH: scratch
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 60s
retries: 5
start_period: 5s
mspass-scheduler:
image: mspass/mspass
volumes:
- "${PWD}/:/home"
ports:
- 8786:8786
environment:
MSPASS_ROLE: scheduler
MSPASS_SCHEDULER: dask
DASK_SCHEDULER_PORT: 8786
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8786
interval: 10s
timeout: 60s
retries: 5
start_period: 5s
mspass-worker:
image: mspass/mspass
volumes:
- "${PWD}/:/home"
depends_on:
- mspass-scheduler
environment:
MSPASS_ROLE: worker
MSPASS_SCHEDULER: dask
MSPASS_SCHEDULER_ADDRESS: mspass-scheduler
mspass-frontend:
image: mspass/mspass
volumes:
- "${PWD}/:/home"
ports:
- 8888:8888
depends_on:
- mspass-dbmanager
- mspass-scheduler
environment:
MSPASS_ROLE: frontend
MSPASS_SCHEDULER: dask
MSPASS_SCHEDULER_ADDRESS: mspass-scheduler
MSPASS_DB_ADDRESS: mspass-dbmanager
MSPASS_JUPYTER_PWD: mspass
JUPYTER_PORT: 8888