container-server/services/fail2ban/docker-compose.yml

29 lines
935 B
YAML
Raw Normal View History

2023-09-20 00:34:12 +02:00
version: '3.7'
services:
fail2ban:
image: lscr.io/linuxserver/fail2ban
container_name: fail2ban
2023-09-20 00:34:12 +02:00
restart: "${RESTART:-no}"
hostname: fail2ban
2023-09-20 00:34:12 +02:00
domainname: ${BASE_DOMAIN}
cap_add:
- NET_ADMIN
- NET_RAW
network_mode: host
2023-09-20 00:34:12 +02:00
environment:
- PUID=0
- PGID=0
2023-09-20 00:34:12 +02:00
- TZ=${TIMEZONE}
- VERBOSITY=-v
volumes:
- ${BASE_DIR:-/srv}/fail2ban:/config
- ./fail2ban/fail2ban.local:/config/fail2ban/fail2ban.local:ro
- ./fail2ban/jail.local:/config/fail2ban/jail.local:ro
- ./fail2ban/uptimerobot.local:/config/fail2ban/uptimerobot.local:ro
- ./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
- ${BASE_DIR:-/srv}/mail/mail-logs:/remotelogs/mail:ro