2023-02-15 21:45:31 +00:00
|
|
|
services:
|
2024-11-04 12:08:51 +00:00
|
|
|
|
2023-02-15 21:45:31 +00:00
|
|
|
fail2ban:
|
2024-11-04 12:08:51 +00:00
|
|
|
image: crazymax/fail2ban:latest
|
2023-02-15 21:45:31 +00:00
|
|
|
container_name: fail2ban
|
2024-11-04 12:08:51 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
network_mode: host
|
2023-02-15 21:45:31 +00:00
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
|
|
|
environment:
|
|
|
|
- TZ=Europe/Berlin
|
|
|
|
- F2B_DB_PURGE_AGE=14d
|
|
|
|
volumes:
|
2023-02-25 13:09:52 +00:00
|
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/fail2Ban/data:/data
|
2023-02-15 21:45:31 +00:00
|
|
|
- /path/to/my/logs/to/monitor:/var/log
|
2024-11-04 12:08:51 +00:00
|
|
|
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik
|