forked from moosefs/moosefs-docker-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-chunkserver-client.yml
114 lines (114 loc) · 2.44 KB
/
docker-compose-chunkserver-client.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
103
104
105
106
107
108
109
110
111
112
113
114
version: '2'
services:
mfsmaster:
# image: moosefs/master
build: ./moosefs-master
container_name: "mfsmaster"
networks:
moosefsnet:
ipv4_address: "172.20.0.2"
ports:
- "9425:9425"
mfschunkserverclient1:
# image: moosefs/chunkserver-client
build: ./moosefs-chunkserver-client
container_name: "mfschunkserverclient1"
environment:
- LABELS=M
- SIZE=10
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
links:
- mfsmaster
networks:
moosefsnet:
ipv4_address: "172.20.0.11"
volumes:
- ./data/cs1_hdd0:/mnt/hdd0
depends_on:
- mfsmaster
mfschunkserverclient2:
# image: moosefs/chunkserver-client
build: ./moosefs-chunkserver-client
container_name: "mfschunkserverclient2"
environment:
- LABELS=MB
- SIZE=10
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
links:
- mfsmaster
networks:
moosefsnet:
ipv4_address: "172.20.0.12"
volumes:
- ./data/cs2_hdd0:/mnt/hdd0
depends_on:
- mfsmaster
mfschunkserverclient3:
# image: moosefs/chunkserver-client
build: ./moosefs-chunkserver-client
container_name: "mfschunkserverclient3"
environment:
- LABELS=MB
- SIZE=10
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
links:
- mfsmaster
networks:
moosefsnet:
ipv4_address: "172.20.0.13"
volumes:
- ./data/cs3_hdd0:/mnt/hdd0
depends_on:
- mfsmaster
mfschunkserverclient4:
# image: moosefs/chunkserver-client
build: ./moosefs-chunkserver-client
container_name: "mfschunkserverclient4"
environment:
- LABELS=B
- SIZE=10
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
stdin_open: true
tty: true
links:
- mfsmaster
networks:
moosefsnet:
ipv4_address: "172.20.0.14"
volumes:
- ./data/cs4_hdd0:/mnt/hdd0
depends_on:
- mfsmaster
networks:
moosefsnet:
driver: bridge
ipam:
config:
- subnet: 172.20.0.0/16
gateway: 172.20.0.1