-
Notifications
You must be signed in to change notification settings - Fork 7
/
waf-docker-compose.yml
122 lines (120 loc) · 2.49 KB
/
waf-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
version: '3'
services:
waf:
image: owasp/modsecurity-crs:v3.1
environment:
PROXY: "1"
UPSTREAM: "proxy:80"
ports:
- "80:80"
depends_on:
- proxy
- netmon
proxy:
image: exploitable/proxy
ports:
- "9000:9000"
depends_on:
- app1
- app2
- app3
- exploitableapp-ws
- netmon
app1:
container_name: app1
image: exploitable/exploitableapp
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://+:8080"
USEMYSQL: "true"
DISABLE_AUTOMATIC_KEY_GENERATION: "true"
app2:
container_name: app2
image: exploitable/exploitableapp
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://+:8080"
USEMYSQL: "true"
DISABLE_AUTOMATIC_KEY_GENERATION: "true"
app3:
container_name: app3
image: exploitable/exploitableapp
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://+:8080"
USEMYSQL: "true"
DISABLE_AUTOMATIC_KEY_GENERATION: "true"
exploitableapp-ws:
image: exploitable/exploitableapp.webservice
depends_on:
- db
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
environment:
ASPNETCORE_ENVIRONMENT: "Development"
ASPNETCORE_URLS: "http://+:8080"
USEMYSQL: "true"
redis:
image: "redis:4.0.11"
command: redis-server --requirepass Password1
depends_on:
- netmon
ports:
- "6379"
db:
image: mysql:5.7
restart: always
depends_on:
- netmon
volumes:
- sharedfiles:/sharedfiles/
environment:
MYSQL_ROOT_PASSWORD: "Password1"
MYSQL_DATABASE: "ExploitableDB"
MYSQL_USER: "sa"
MYSQL_PASSWORD: "Password1"
adminer:
image: adminer
restart: always
depends_on:
- db
ports:
- "8080:8080"
netmon:
image: exploitable/netmon
volumes:
- sharedfiles:/sharedfiles/
ports:
- "1337:22"
volumes:
sharedfiles: {}