2022-08-10 01:02:52 +00:00
|
|
|
# [Fail2ban](http://www.fail2ban.org/) is a daemon to ban hosts that cause
|
|
|
|
# multiple authentication errors.
|
|
|
|
|
|
|
|
---
|
|
|
|
version: "2.1"
|
|
|
|
services:
|
|
|
|
fail2ban:
|
|
|
|
image: ghcr.io/linuxserver/fail2ban
|
|
|
|
container_name: fail2ban
|
|
|
|
cap_add:
|
|
|
|
- NET_ADMIN
|
|
|
|
- NET_RAW
|
|
|
|
network_mode: host
|
|
|
|
environment:
|
|
|
|
# for UserID
|
|
|
|
- PUID=${PUID:-1024}
|
|
|
|
# for GroupID
|
|
|
|
- PGID=${PGID:-100}
|
2023-02-12 01:01:09 +00:00
|
|
|
# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
|
2022-08-10 01:02:52 +00:00
|
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
2023-06-03 00:59:17 +00:00
|
|
|
# Set the container log verbosity. Valid options are -v, -vv, -vvv, -vvvv, or leaving the value blank or not setting the variable.
|
|
|
|
- VERBOSITY=-vv # optional
|
2022-08-10 01:02:52 +00:00
|
|
|
volumes:
|
|
|
|
# Contains all relevant configuration files.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/config:/config
|
|
|
|
# Host logs. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/var/log:ro:/var/log:ro
|
2022-08-26 01:06:26 +00:00
|
|
|
# Optional path to airsonic log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/airsonic:ro:/remotelogs/airsonic:ro # optional
|
2022-08-10 01:02:52 +00:00
|
|
|
# Optional path to apache2 log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/apache2:ro:/remotelogs/apache2:ro # optional
|
2022-08-26 01:06:26 +00:00
|
|
|
# Optional path to authelia log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/authelia:ro:/remotelogs/authelia:ro # optional
|
|
|
|
# Optional path to emby log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/emby:ro:/remotelogs/emby:ro # optional
|
|
|
|
# Optional path to filebrowser log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/filebrowser:ro:/remotelogs/filebrowser:ro # optional
|
|
|
|
# Optional path to homeassistant log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/homeassistant:ro:/remotelogs/homeassistant:ro # optional
|
|
|
|
# Optional path to lighttpd log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/lighttpd:ro:/remotelogs/lighttpd:ro # optional
|
|
|
|
# Optional path to nextcloud log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/nextcloud:ro:/remotelogs/nextcloud:ro # optional
|
2022-08-10 01:02:52 +00:00
|
|
|
# Optional path to nginx log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/nginx:ro:/remotelogs/nginx:ro # optional
|
2022-08-26 01:06:26 +00:00
|
|
|
# Optional path to nzbget log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/nzbget:ro:/remotelogs/nzbget:ro # optional
|
|
|
|
# Optional path to overseerr log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/overseerr:ro:/remotelogs/overseerr:ro # optional
|
|
|
|
# Optional path to prowlarr log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/prowlarr:ro:/remotelogs/prowlarr:ro # optional
|
|
|
|
# Optional path to radarr log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/radarr:ro:/remotelogs/radarr:ro # optional
|
|
|
|
# Optional path to sabnzbd log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/sabnzbd:ro:/remotelogs/sabnzbd:ro # optional
|
|
|
|
# Optional path to sonarr log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/sonarr:ro:/remotelogs/sonarr:ro # optional
|
|
|
|
# Optional path to unificontroller log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/unificontroller:ro:/remotelogs/unificontroller:ro # optional
|
|
|
|
# Optional path to vaultwarden log folder. Mounted as Read Only.
|
|
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/vaultwarden:ro:/remotelogs/vaultwarden:ro # optional
|
2022-08-10 01:02:52 +00:00
|
|
|
ports:
|
|
|
|
# Application WebUI
|
|
|
|
- 80:80
|
|
|
|
restart: unless-stopped
|