-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
350 lines (321 loc) · 7.84 KB
/
docker-compose.yml
File metadata and controls
350 lines (321 loc) · 7.84 KB
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
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
services:
# ============================================================
# Landing Page — always starts, no profile required
# http://localhost:8080
# ============================================================
homer:
image: b4bz/homer:latest
container_name: homer
ports:
- "8080:8080"
volumes:
- ./homer/assets:/www/assets
networks:
- hackinglab
restart: unless-stopped
# ============================================================
# Attacker Tools — docker compose --profile tools up -d
# ============================================================
kali:
build: ./kali
container_name: kali
privileged: true
tty: true
networks:
- hackinglab
volumes:
- ./kali:/root
command: /bin/bash
profiles: ["tools", "full"]
metasploit:
build: ./metasploit
container_name: metasploit
volumes:
- ./metasploit:/home/msf/.msf4
networks:
- hackinglab
profiles: ["tools", "full"]
nmap:
build: ./nmap
container_name: nmap
networks:
- hackinglab
profiles: ["tools", "full"]
wireshark:
build: ./wireshark
container_name: wireshark
environment:
- DISPLAY=${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ./wireshark:/root
networks:
- hackinglab
profiles: ["tools", "full"]
burpsuite:
image: retenet/burpsuite
container_name: burpsuite
environment:
- DISPLAY=${DISPLAY}
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
networks:
- hackinglab
profiles: ["tools", "full"]
# ============================================================
# Security Scanners — docker compose --profile scanners up -d
# ============================================================
zap:
build:
context: ./zap
args:
ZAP_VERSION: 2.15.0
container_name: zap
ports:
- "2582:8080"
networks:
- hackinglab
profiles: ["scanners", "full"]
openvas:
image: grafana/openvas
container_name: openvas
ports:
- "9392:9392"
networks:
- hackinglab
profiles: ["scanners", "full"]
# ============================================================
# Vulnerable Web Applications — docker compose --profile web-apps up -d
# ============================================================
dvwa:
build: ./dvwa
container_name: dvwa
ports:
- "2580:80"
volumes:
- ./dvwa:/var/www/html
networks:
- hackinglab
profiles: ["web-apps", "full"]
webgoat:
build: ./webgoat
container_name: webgoat
ports:
- "2581:8080"
networks:
- hackinglab
profiles: ["web-apps", "full"]
bwapp:
image: raesene/bwapp:latest
platform: linux/amd64
container_name: bwapp
ports:
- "2583:80"
environment:
- UPLOAD_ENABLED=1
- MYSQL_DATABASE=bWAPP
- MYSQL_USER=bWAPP
- MYSQL_PASSWORD=bWAPP
- MYSQL_ROOT_PASSWORD=root
networks:
- hackinglab
profiles: ["web-apps", "full"]
juice-shop:
image: bkimminich/juice-shop:latest
container_name: juice-shop
ports:
- "3000:3000"
networks:
- hackinglab
profiles: ["web-apps", "full"]
mutillidae:
image: citizenstig/nowasp:latest
container_name: mutillidae
ports:
- "2584:80"
networks:
- hackinglab
profiles: ["web-apps", "full"]
# Replaces Security Shepherd (abandoned). Covers secrets mismanagement across
# env vars, config files, cloud metadata, and more.
wrongsecrets:
image: jeroenwillemsen/wrongsecrets:latest
container_name: wrongsecrets
ports:
- "2585:8080"
environment:
- SPRING_PROFILES_ACTIVE=without-docker
networks:
- hackinglab
profiles: ["web-apps", "full"]
dvna:
image: appsecco/dvna
container_name: dvna
ports:
- "2586:9090"
networks:
- hackinglab
profiles: ["web-apps", "full"]
wordpress:
image: wordpress:6.0
container_name: wordpress
ports:
- "2587:80"
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_USER: wordpress
WORDPRESS_DB_PASSWORD: wordpress
WORDPRESS_DB_NAME: wordpress
volumes:
- wordpress_data:/var/www/html
networks:
- hackinglab
depends_on:
- db
profiles: ["web-apps", "full"]
db:
image: mysql:8.0
container_name: wordpressdb
environment:
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_ROOT_PASSWORD: root
volumes:
- db_data:/var/lib/mysql
networks:
- hackinglab
profiles: ["web-apps", "full"]
nodegoat:
image: contrastsecuritydemo/nodegoat:1.3.0
container_name: nodegoat
ports:
- "4000:4000"
networks:
- hackinglab
profiles: ["web-apps", "full"]
# ============================================================
# Vulnerable APIs — docker compose --profile api up -d
# ============================================================
vulnerable_api:
build: ./vulnerable_api
container_name: vulnerable_api
ports:
- "2500:5000"
networks:
- hackinglab
profiles: ["api", "full"]
vampi:
image: erev0s/vampi:latest
container_name: vampi
ports:
- "6000:5000"
networks:
- hackinglab
profiles: ["api", "full"]
# crAPI — OWASP Completely Ridiculous API. Covers OWASP API Security Top 10.
# Docs: https://github.com/OWASP/crAPI
# User-facing app: http://localhost:2590
# Email (registration/reset): http://localhost:2592
crapi-web:
image: crapi/crapi-web:latest
container_name: crapi-web
ports:
- "2590:80"
depends_on:
- crapi-identity
- crapi-community
- crapi-workshop
networks:
- hackinglab
profiles: ["api", "full"]
crapi-identity:
image: crapi/crapi-identity:latest
container_name: crapi-identity
environment:
DB_NAME: crapi
DB_USERNAME: admin
DB_PASSWORD: crapipassword
DB_HOST: crapidb
DB_PORT: 5432
MAILHOG_HOST: mailhog
MAILHOG_PORT: 1025
SERVER_PORT: 8080
JWT_SECRET: crapi-lab-secret
depends_on:
- crapidb
- mailhog
networks:
- hackinglab
profiles: ["api", "full"]
crapi-community:
image: crapi/crapi-community:latest
container_name: crapi-community
environment:
MONGO_DB_HOST: crapi-mongodb
MONGO_DB_PORT: 27017
MONGO_DB_NAME: crapi
SERVER_PORT: 8087
IDENTITY_SERVICE: http://crapi-identity:8080
depends_on:
- crapi-mongodb
- crapi-identity
networks:
- hackinglab
profiles: ["api", "full"]
crapi-workshop:
image: crapi/crapi-workshop:latest
container_name: crapi-workshop
environment:
DB_NAME: crapi_workshop
DB_USER: admin
DB_PASSWORD: crapipassword
DB_HOST: crapidb
DB_PORT: 5432
MAILHOG_HOST: mailhog
MAILHOG_PORT: 1025
SERVER_PORT: 8000
IDENTITY_SERVICE: http://crapi-identity:8080
depends_on:
- crapidb
- mailhog
- crapi-identity
networks:
- hackinglab
profiles: ["api", "full"]
crapidb:
image: postgres:14
container_name: crapidb
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: crapipassword
POSTGRES_DB: crapi
volumes:
- crapi_db_data:/var/lib/postgresql/data
networks:
- hackinglab
profiles: ["api", "full"]
crapi-mongodb:
image: mongo:4.4
container_name: crapi-mongodb
volumes:
- crapi_mongo_data:/data/db
networks:
- hackinglab
profiles: ["api", "full"]
mailhog:
image: mailhog/mailhog:latest
container_name: mailhog
ports:
- "2592:8025"
networks:
- hackinglab
profiles: ["api", "full"]
networks:
hackinglab:
driver: bridge
volumes:
db_data:
wordpress_data:
crapi_db_data:
crapi_mongo_data: