File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -11,3 +11,27 @@ services:
11
11
- /docker/appdata/nginx/data:/data
12
12
- /docker/appdata/nginx/letsencrypt:/etc/letsencrypt
13
13
restart : unless-stopped
14
+
15
+ fail2ban :
16
+ image : crazymax/fail2ban:latest
17
+ container_name : fail2ban_docker-pi
18
+ network_mode : " host"
19
+ cap_add :
20
+ - NET_ADMIN
21
+ - NET_RAW
22
+ volumes :
23
+ - " /docker/appdata/fail2ban/data:/data"
24
+ - " /var/log/auth.log:/var/log/auth.log:ro"
25
+ - " /docker/appdata/nginx/data/logs/:/log/npm/:ro"
26
+ environment :
27
+ - TZ=America/New_York
28
+ - F2B_LOG_TARGET=STDOUT
29
+ - F2B_LOG_LEVEL=INFO
30
+ - F2B_DB_PURGE_AGE=1d
31
+ - SSMTP_HOST=$SSMTP_HOST
32
+ - SSMTP_PORT=587
33
+ - SSMTP_HOSTNAME=$SSMTP_HOSTNAME
34
+ - SSMTP_USER=$SSMTP_USER
35
+ - SSMTP_PASSWORD=$SSMTP_PASSWORD
36
+ - SSMTP_TLS=YES
37
+ restart : always
You can’t perform that action at this time.
0 commit comments