You must mount the Fail2ban socket directory:
volumes:
- /path/to/directory:/var/run/fail2ban
- ./path/to/logfile:/path/in/container/logfileversion: '3.9'
services:
fail2bancontrol:
image: oweitman/fail2bancontrol
ports:
- '9191:9000'
volumes:
- /path/to/directory:/var/run/fail2ban
- ./path/to/logfile:/path/in/container/logfile
environment:
TZ: Europe/Berlin
restart: unless-stoppedStart:
docker compose up -ddocker run -d \
--name fail2bancontrol \
-p 9191:9000 \
-e TZ=Europe/Berlin \
-v /path/to/directory:/var/run/fail2ban \
-v /path/to/logfile:/path/in/container/logfile \
--restart unless-stopped \
oweitman/fail2bancontrolhttp://<host>:9191