-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (71 loc) · 1.34 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
x-common-network:
&common-network
networks:
- common
services:
master:
build:
context: .
target: master
command: ["/app/master"]
ports:
- "1234:1234"
<<: *common-network
cs1:
build:
context: .
target: chunkserver
command: [ "/app/chunkserver" ]
environment:
SERVER_HOST: cs1
SERVER_PORT: 50001
MASTER_ADDR: "master:1234"
depends_on:
- master
ports:
- "1235:50001"
<<: *common-network
cs2:
build:
context: .
target: chunkserver
command: [ "/app/chunkserver" ]
environment:
SERVER_HOST: cs2
SERVER_PORT: 50002
MASTER_ADDR: "master:1234"
depends_on:
- master
ports:
- "1236:50002"
<<: *common-network
cs3:
build:
context: .
target: chunkserver
command: [ "/app/chunkserver" ]
environment:
SERVER_HOST: cs3
SERVER_PORT: 50003
MASTER_ADDR: "master:1234"
depends_on:
- master
ports:
- "1237:50003"
<<: *common-network
cs4:
build:
context: .
target: chunkserver
command: [ "/app/chunkserver" ]
environment:
SERVER_HOST: cs4
SERVER_PORT: 50004
MASTER_ADDR: "master:1234"
depends_on:
- master
ports:
- "1238:50004"
<<: *common-network
networks:
common: