mirror of
https://github.com/Haxxnet/Compose-Examples
synced 2024-12-18 08:10:23 +00:00
19 lines
487 B
YAML
19 lines
487 B
YAML
version: "3"
|
|
|
|
services:
|
|
fail2ban:
|
|
container_name: fail2ban
|
|
cap_add:
|
|
- NET_ADMIN
|
|
- NET_RAW
|
|
environment:
|
|
- TZ=Europe/Berlin
|
|
- F2B_DB_PURGE_AGE=14d
|
|
image: crazymax/fail2ban:latest
|
|
network_mode: host
|
|
restart: unless-stopped
|
|
volumes:
|
|
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/fail2Ban/data:/data
|
|
- /path/to/my/logs/to/monitor:/var/log
|
|
#- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik
|