Skip to content

Fail2ban

Docker Pulls GitHub Stars Compose Templates

Description

Fail2ban is a daemon to ban hosts that cause multiple authentication errors.

Install/Setup

Please read the Application Setup section of the container documentation.

This container runs with special permissions NET_ADMIN and NET_RAW and runs in host network mode by default. These configurations allow Fail2ban to perform bans at the host level, rather than only banning from inside the docker container.

This container requires an override to add additional log paths for other applications.

Example:

services:
  fail2ban:
    volumes:
      - "${DOCKERCONFDIR}/filebrowser/filebrowser.log:/remotelogs/filebrowser/filebrowser.log:ro"
      - "${DOCKERCONFDIR}/swag/log/nginx:/remotelogs/nginx:ro"