-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.yml
116 lines (115 loc) · 2.23 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
version: '3.4'
services:
# waf:
# image: "owasp/modsecurity-crs:v3.1"
# environment:
# PROXY: "1"
# UPSTREAM: "proxy:80"
# ports:
# - "80:80"
# depends_on:
# - proxy
proxy:
build:
context: .
dockerfile: ./haproxy/Dockerfile
ports:
- "80:80"
- "9000:9000"
depends_on:
- app1
- app2
- app3
- exploitableapp-ws
- netmon
app1:
container_name: app1
image: ${DOCKER_REGISTRY}exploitableapp
build:
context: .
dockerfile: ./ExploitableApp/Dockerfile
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
app2:
container_name: app2
image: ${DOCKER_REGISTRY}exploitableapp
build:
context: .
dockerfile: ./ExploitableApp/Dockerfile
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
app3:
container_name: app3
image: ${DOCKER_REGISTRY}exploitableapp
build:
context: .
dockerfile: ./ExploitableApp/Dockerfile
depends_on:
- db
- exploitableapp-ws
- redis
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
exploitableapp-ws:
image: ${DOCKER_REGISTRY}exploitableappwebservice
build:
context: .
dockerfile: ./ExploitableApp.WebService/Dockerfile
depends_on:
- db
- netmon
ports:
- "8080"
volumes:
- sharedfiles:/app/sharedfiles/
redis:
image: "redis:4.0.11"
command: redis-server --requirepass Password1
depends_on:
- netmon
# db:
# image: "microsoft/mssql-server-linux"
# environment:
# SA_PASSWORD: "Password1"
# ACCEPT_EULA: "Y"
# depends_on:
# - netmon
db:
image: mysql:5.7
restart: always
volumes:
- sharedfiles:/sharedfiles/
depends_on:
- netmon
adminer:
image: adminer
restart: always
depends_on:
- db
ports:
- "8080:8080"
netmon:
build:
context: .
dockerfile: ./ssh/Dockerfile
volumes:
- sharedfiles:/sharedfiles/
ports:
- "1337:22"