forked from freakmaxi/kertish-dos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
170 lines (157 loc) · 3.82 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
version: '3'
services:
mongodb:
image: mongo:latest
container_name: mongodb
restart: always
ports:
- 27017:27017
volumes:
- ./Volumes/mongodb:/data/db
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=dfs-test-123
networks:
static-network:
redis:
image: redis:latest
container_name: redis
restart: always
ports:
- 6379:6379
volumes:
- ./Volumes/redis:/data
networks:
static-network:
lockingcenter:
image: freakmaxi/locking-center:latest
container_name: lockingcenter
restart: always
ports:
- 22119:22119
- 22120:22120
networks:
static-network:
ipv4_address: 172.20.1.10
kdfsc1n1:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc1n1
restart: always
volumes:
- ./Volumes/kertish-dfs/c1n1/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.20
kdfsc1n2:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc1n2
restart: always
volumes:
- ./Volumes/kertish-dfs/c1n2/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.21
kdfsc2n1:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc2n1
restart: always
volumes:
- ./Volumes/kertish-dfs/c2n1/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.30
kdfsc2n2:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc2n2
restart: always
volumes:
- ./Volumes/kertish-dfs/c2n2/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.31
kdfsc3n1:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc3n1
restart: always
volumes:
- ./Volumes/kertish-dfs/c3n1/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.40
kdfsc3n2:
image: freakmaxi/kertish-dfs:data-dev
container_name: kdfsc3n2
restart: always
volumes:
- ./Volumes/kertish-dfs/c3n2/:/opt/
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- SIZE=1073741824
- ROOT_PATH=/opt
- CACHE_LIMIT=1073741824
networks:
static-network:
ipv4_address: 172.20.1.41
kdfsmanager:
image: freakmaxi/kertish-dfs:manager-dev
container_name: kdfsmanager
restart: always
environment:
- MONGO_CONN=mongodb://root:dfs-test-123@mongodb:27017
- MONGO_DATABASE=dfs
- REDIS_CONN=redis:6379
- LOCKING_CENTER=lockingcenter:22119
ports:
- 9400:9400
depends_on:
- lockingcenter
- redis
- mongodb
networks:
static-network:
kdfshead:
image: freakmaxi/kertish-dfs:head-dev
container_name: kdfshead
restart: always
environment:
- MANAGER_ADDRESS=http://kdfsmanager:9400
- MONGO_CONN=mongodb://root:dfs-test-123@mongodb:27017
- MONGO_DATABASE=dfs
- LOCKING_CENTER=lockingcenter:22119
ports:
- 4000:4000
depends_on:
- lockingcenter
- mongodb
networks:
static-network:
networks:
static-network:
ipam:
config:
- subnet: 172.20.1.0/16