2023-09-20 00:34:12 +02:00
|
|
|
version: '3.7'
|
|
|
|
|
|
|
|
services:
|
|
|
|
fail2ban:
|
|
|
|
image: lscr.io/linuxserver/fail2ban
|
2023-09-20 20:56:20 +02:00
|
|
|
container_name: fail2ban
|
2023-09-20 00:34:12 +02:00
|
|
|
restart: "${RESTART:-no}"
|
2023-09-20 20:56:20 +02:00
|
|
|
hostname: fail2ban
|
2023-09-20 00:34:12 +02:00
|
|
|
domainname: ${BASE_DOMAIN}
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
2023-09-20 20:56:20 +02:00
|
|
|
network_mode: host
|
2023-09-20 00:34:12 +02:00
|
|
|
environment:
|
2023-09-20 20:56:20 +02:00
|
|
|
- PUID=0
|
|
|
|
- PGID=0
|
2023-09-20 00:34:12 +02:00
|
|
|
- TZ=${TIMEZONE}
|
|
|
|
- VERBOSITY=-v
|
|
|
|
volumes:
|
|
|
|
- ${BASE_DIR:-/srv}/fail2ban:/config
|
2023-09-20 20:56:20 +02:00
|
|
|
- ./fail2ban/fail2ban.local:/config/fail2ban/fail2ban.local:ro
|
|
|
|
- ./fail2ban/jail.local:/config/fail2ban/jail.local:ro
|
2023-09-22 19:44:17 +02:00
|
|
|
- ./fail2ban/uptimerobot.local:/config/fail2ban/uptimerobot.local:ro
|
2023-09-20 20:56:20 +02:00
|
|
|
- ./fail2ban/action.d/iptables.local:/config/fail2ban/action.d/iptables.local:ro
|
2023-09-20 00:34:12 +02:00
|
|
|
- /var/log:/var/log:ro
|
|
|
|
- ${BASE_DIR:-/srv}/forgejo/data/gitea/log:/remotelogs/gitea:ro
|
|
|
|
- ${BASE_DIR:-/srv}/vaultwarden/data/logs:/remotelogs/vaultwarden:ro
|
2023-09-20 20:56:20 +02:00
|
|
|
- ${BASE_DIR:-/srv}/mail/mail-logs:/remotelogs/mail:ro
|