-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
271 lines (249 loc) · 5.4 KB
/
compose.yaml
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
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
services:
mysqldb_flag:
container_name: mysqldb_flag
image: mysql
environment:
MYSQL_DATABASE: flagsdb
MYSQL_USER: cyberlabs
MYSQL_PASSWORD: Fl4Gs_F0R_Fr33!!
MYSQL_ROOT_PASSWORD: 1gn1s@r_0_0_t
volumes:
- ./flagdatabase/flag_db:/docker-entrypoint-initdb.d/
ports:
- 3306:3306
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-h", "localhost", '-u', 'root', '-p$$MYSQL_ROOT_PASSWORD']
timeout: 20s
retries: 10
level_00:
container_name: level_00
build:
context: level_00
dockerfile: Dockerfile
volumes:
- ./level_00/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10000:22
level_01:
container_name: level_01
build:
context: level_01
dockerfile: Dockerfile
volumes:
- ./level_01/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10001:22
level_02:
container_name: level_02
build:
context: level_02
dockerfile: Dockerfile
volumes:
- ./level_02/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10002:22
level_03:
container_name: level_03
build:
context: level_03
dockerfile: Dockerfile
volumes:
- ./level_03/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10003:22
level_04:
container_name: level_04
build:
context: level_04
dockerfile: Dockerfile
volumes:
- ./level_04/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10004:22
level_05:
container_name: level_05
build:
context: level_05
dockerfile: Dockerfile
volumes:
- ./level_05/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10005:22
level_06:
container_name: level_06
build:
context: level_06
dockerfile: Dockerfile
volumes:
- ./level_06/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10006:22
level_07:
container_name: level_07
build:
context: level_07
dockerfile: Dockerfile
volumes:
- ./level_07/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10007:22
level_08:
container_name: level_08
build:
context: level_08
dockerfile: Dockerfile
volumes:
- ./level_08/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10008:22
level_09:
container_name: level_09
build:
context: level_09
dockerfile: Dockerfile
volumes:
- ./level_09/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10009:22
level_10:
container_name: level_10
build:
context: level_10
dockerfile: Dockerfile
volumes:
- ./level_10/cron.sh:/root/cron.sh
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10010:22
level_11:
container_name: level_11
build:
context: level_11
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10011:22
level_12:
container_name: level_12
build:
context: level_12
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10012:22
level_13:
container_name: level_13
build:
context: level_13
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10013:22
level_14:
container_name: level_14
build:
context: level_14
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10014:22
level_15:
container_name: level_15
build:
context: level_15
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10015:22
level_16:
container_name: level_16
build:
context: level_16
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10016:22
level_17:
container_name: level_17
build:
context: level_17
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10017:22
level_18:
container_name: level_18
build:
context: level_18
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10018:22
level_19:
container_name: level_19
build:
context: level_19
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10019:22
level_20:
container_name: level_20
build:
context: level_20
dockerfile: Dockerfile
depends_on:
mysqldb_flag:
condition: service_healthy
ports:
- 10020:22