1
0
mirror of https://github.com/Haxxnet/Compose-Examples synced 2024-12-23 02:30:20 +00:00
Compose-Examples/examples/fail2ban/docker-compose.yml

17 lines
473 B
YAML
Raw Normal View History

2023-02-15 21:45:31 +00:00
services:
2023-02-15 21:45:31 +00:00
fail2ban:
image: crazymax/fail2ban:latest
2023-02-15 21:45:31 +00:00
container_name: fail2ban
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:
- ${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
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik