-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
221 lines (206 loc) · 4.82 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
version: "3.4"
services:
httpd:
build:
context: docker
dockerfile: httpd/Dockerfile
ports:
- "80:80"
- "8080:80"
- "8181:80"
- "8000:80"
- "8001:80"
- "1080:80"
logging:
options:
max-file: '1'
max-size: 3m
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
- HONEYPOT_IP=${HONEYPOT_IP}
volumes:
- /data:/logs
depends_on:
- socat
- sshd
- hellpot
- inetsim
- dionaea
- smtpd
- dicompot
- ipphoney
- medpot
- fail2ban
tmpfs:
- /tmp
read_only: true
restart: always
sshd:
build:
context: docker
dockerfile: sshd/Dockerfile
ports:
- "22:22"
logging:
options:
max-file: '1'
max-size: 3m
depends_on:
- telnetd
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
- HONEYPOT_IP=${HONEYPOT_IP}
volumes:
- /data:/logs
tmpfs:
- /tmp
read_only: true
restart: always
telnetd:
build:
context: docker
dockerfile: telnetd/Dockerfile
ports:
- "127.0.0.1:23:23"
logging:
options:
max-file: '1'
max-size: 3m
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
- HONEYPOT_IP=${HONEYPOT_IP}
volumes:
- /data:/logs
tmpfs:
- /tmp
read_only: true
restart: always
socat:
build:
context: docker
dockerfile: socat/Dockerfile
ports:
- "443:443"
- '465:465'
logging:
options:
max-file: '1'
max-size: 3m
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
volumes:
- /etc/letsencrypt:/etc/letsencrypt
tmpfs:
- /tmp
- /var/run
- /var/log/supervisor
read_only: true
restart: always
smtpd:
image: rnwood/smtp4dev:v3
ports:
- '127.0.0.1:5000:80'
- '127.0.0.1:25:25'
- '127.0.0.1:587:25'
restart: always
volumes:
- smtp4dev-data:/smtp4dev
- /etc/letsencrypt:/etc/letsencrypt
tmpfs:
- /tmp
read_only: true
environment:
- ServerOptions__HostName=smtp.gmail.com
- ServerOptions__NumberOfMessagesToKeep=10000
- ServerOptions__NumberOfSessionsToKeep=100
- ServerOptions__TlsMode=StartTls
hellpot:
restart: always
image: "dtagdevsec/hellpot:2204"
read_only: true
volumes:
- /data/hellpot/log:/var/log/hellpot
inetsim:
image: 0x4d4c/inetsim
restart: always
environment:
- INETSIM_HTTP_VERSION=nginx/1.4.6 (Ubuntu)
- INETSIM_SMTP_FQDN_HOSTNAME=${DOMAIN_NAME}
- INETSIM_SMTP_BANNER=ESMTP Postfix (Ubuntu)
- INETSIM_SMTPS_BANNER=ESMTP Postfix (Ubuntu)
- INETSIM_SMTPS_FQDN_HOSTNAME=${DOMAIN_NAME}
- INETSIM_POP3_BANNER=ESMTP Postfix (Ubuntu)
- INETSIM_POP3S_BANNER=ESMTP Postfix (Ubuntu)
volumes:
- ./inetsim/log:/opt/inetsim/log
- ./inetsim/data:/opt/inetsim/data
- ./inetsim/report/inetsim:/opt/inetsim/report
dicompot:
restart: always
image: "dtagdevsec/dicompot:2204"
read_only: true
volumes:
- /data/dicompot/log:/var/log/dicompot
dionaea:
stdin_open: true
tty: true
cpu_count: 1
cpus: 0.5
restart: always
image: "dtagdevsec/dionaea:2204"
read_only: true
volumes:
- /data/dionaea/roots/ftp:/opt/dionaea/var/dionaea/roots/ftp
- /data/dionaea/roots/tftp:/opt/dionaea/var/dionaea/roots/tftp
- /data/dionaea/roots/www:/opt/dionaea/var/dionaea/roots/www
- /data/dionaea/roots/upnp:/opt/dionaea/var/dionaea/roots/upnp
- /data/dionaea:/opt/dionaea/var/dionaea
- /data/dionaea/binaries:/opt/dionaea/var/dionaea/binaries
- /data/dionaea/log:/opt/dionaea/var/log
- /data/dionaea/rtp:/opt/dionaea/var/dionaea/rtp
ipphoney:
image: "dtagdevsec/ipphoney:2204"
restart: always
read_only: true
volumes:
- /data/ipphoney/log:/opt/ipphoney/log
medpot:
image: "dtagdevsec/medpot:2204"
restart: always
read_only: true
volumes:
- /data/medpot/log/:/var/log/medpot
certbot:
image: certbot/certbot:latest
volumes:
- /tmp/html:/var/www/html
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
depends_on:
- nginx
command: ["--version"]
nginx:
image: nginx:1.19.2-alpine
ports:
- 80:80
environment:
- DOMAIN_NAME=${DOMAIN_NAME}
volumes:
- ./config/nginx:/etc/nginx/conf.d
- /tmp/html:/var/www/html
- /etc/letsencrypt:/etc/letsencrypt
- /var/lib/letsencrypt:/var/lib/letsencrypt
fail2ban:
build: ./docker/fail2ban
cap_add:
- NET_ADMIN
- NET_RAW
network_mode: host
environment:
- MGMT_IP=${MGMT_IP}
volumes:
- /etc/timezone:/etc/timezone.host:ro
- /var/log:/var/log
- /data:/logs:ro
volumes:
smtp4dev-data: