-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
238 lines (226 loc) · 5.03 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
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
services:
kali:
image: kali-cli:latest
build:
context: .
dockerfile: ./kali/Dockerfile
#container_name: kali
networks:
- attacker
ports:
- 127.0.0.1:1337:1337
environment:
- KALI_PASSWORD
command: bash -c 'echo $${KALI_PASSWORD} | passwd -s; sleep 5; echo "$$(dig +short nginx) www www.ids-lab.home.arpa siem siem.ids-lab.home.arpa" >> /etc/hosts; shellinaboxd --disable-ssl --port=1337'
restart: always
depends_on:
- nginx
nginx:
image: nginx:latest
#container_name: nginx
networks:
- lab
- attacker
ports:
- 127.0.0.1:80:80
- 127.0.0.1:8080:8080
- 127.0.0.1:443:443
restart: always
depends_on:
- fluentbit
logging:
driver: fluentd
options:
tag: docker.nginx
volumes:
- ./nginx/conf:/etc/nginx/conf.d/:ro
- ./nginx/ssl:/etc/nginx/ssl/:ro
- ./nginx/patch:/var/www/patch/:ro
wordpress:
image: wordpress:latest
#container_name: wordpress
restart: always
networks:
- lab
#ports:
# - 127.0.0.1:8000:80
environment:
- WORDPRESS_DB_HOST=mysql
- WORDPRESS_DB_USER
- WORDPRESS_DB_PASSWORD
- WORDPRESS_DB_NAME
depends_on:
- fluentbit
- mysql
logging:
driver: fluentd
options:
tag: docker.wordpress
volumes:
- wordpress:/var/www/html
mysql:
image: mysql:8.0
#container_name: mysql
restart: always
environment:
- MYSQL_DATABASE
- MYSQL_USER
- MYSQL_PASSWORD
- MYSQL_RANDOM_ROOT_PASSWORD=1
networks:
- lab
depends_on:
- fluentbit
logging:
driver: fluentd
options:
tag: docker.mysql
volumes:
- mysqldb:/var/lib/mysql
accounting:
image: linuxserver/rdesktop:ubuntu-openbox
#container_name: accounting
restart: always
networks:
- lab
#ports:
# - 127.0.0.1:3389:3389
depends_on:
- fluentbit
logging:
driver: fluentd
options:
tag: docker.accounting
volumes:
- rdesktop:/config
- ./rdesktop/openbox:/config/.config/openbox
wireguard:
image: linuxserver/wireguard:latest
#container_name: wireguard
cap_add:
- NET_ADMIN
volumes:
- wgconfig:/config/wg_confs:ro
networks:
- lab
ports:
# port of the wireguard server
- 127.0.0.1:51820:51820/udp
environment:
# enable server mode
- PEERS=0
depends_on:
- fluentbit
logging:
driver: fluentd
options:
tag: docker.wireguard
wireguard-ui:
image: ngoduykhanh/wireguard-ui:latest
#container_name: wireguard-ui
depends_on:
- wireguard
- fluentbit
cap_add:
- NET_ADMIN
# use the network of the 'wireguard' service. this enables to show active clients in the status page
#network_mode: service:wireguard
networks:
- lab
ports:
- 127.0.0.1:5000:5000
environment:
- SENDGRID_API_KEY
- EMAIL_FROM_ADDRESS
- EMAIL_FROM_NAME
- TELEGRAM_TOKEN
- TELEGRAM_ALLOW_CONF_REQUEST
- TELEGRAM_FLOOD_WAIT
- SESSION_SECRET
- WGUI_USERNAME
- WGUI_PASSWORD
- WG_CONF_TEMPLATE
- WGUI_MANAGE_START=true
- WGUI_MANAGE_RESTART=true
logging:
driver: fluentd
options:
tag: docker.wireguard-ui
#logging:
# driver: json-file
# options:
# max-size: 50m
volumes:
- wgdb:/app/db
- wgconfig:/etc/wireguard
fluentbit:
image: fluent/fluent-bit:latest
#container_name: fluentbit
restart: always
depends_on:
- openobserve
environment:
- ZO_ROOT_USER_EMAIL
- ZO_ROOT_USER_PASSWORD
networks:
- lab
ports:
- 127.0.0.1:24224:24224
- 127.0.0.1:24224:24224/udp
volumes:
- ./fluent:/fluent-bit/etc:ro
- suricatalogs:/var/log/suricata:ro
openobserve:
image: openobserve/openobserve:v0.10.8
#container_name: openobserve
restart: always
environment:
- ZO_ROOT_USER_EMAIL
- ZO_ROOT_USER_PASSWORD
- ZO_INGEST_ALLOWED_UPTO=24
- ZO_TELEMETRY=false
networks:
- lab
ports:
- 127.0.0.1:5080:5080
volumes:
- openobserve:/data
suricata:
image: jasonish/suricata:latest
#container_name: suricata
restart: always
#command: -i eth0
#networks:
# - lab
command: -i br-lab 'not port 24224 and not tcp port 5080 and not udp port 51820'
network_mode: host
cap_add:
- NET_ADMIN
- NET_RAW
- SYS_NICE
depends_on:
- fluentbit
logging:
driver: fluentd
options:
tag: docker.suricata
volumes:
- ./suricata:/etc/suricata
- suricatarules:/var/lib/suricata
- suricatarun:/var/run/suricata
- suricatalogs:/var/log/suricata
networks:
lab:
driver_opts:
com.docker.network.bridge.name: br-lab
attacker:
volumes:
wordpress:
mysqldb:
rdesktop:
wgconfig:
wgdb:
openobserve:
suricatarules:
suricatarun:
suricatalogs: