mirror of
https://github.com/technorabilia/docker-bits
synced 2024-11-14 18:12:47 +00:00
66 lines
3.9 KiB
YAML
66 lines
3.9 KiB
YAML
# [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}
|
|
# specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List).
|
|
- TZ=${TZ:-Europe/Amsterdam}
|
|
# 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
|
|
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
|
|
# Optional path to airsonic log folder. Mounted as Read Only.
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/airsonic:ro:/remotelogs/airsonic:ro # optional
|
|
# Optional path to apache2 log folder. Mounted as Read Only.
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/apache2:ro:/remotelogs/apache2:ro # optional
|
|
# 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
|
|
# Optional path to nginx log folder. Mounted as Read Only.
|
|
- ${BASEDIR:-/volume1/docker}/fail2ban/remotelogs/nginx:ro:/remotelogs/nginx:ro # optional
|
|
# 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
|
|
ports:
|
|
# Application WebUI
|
|
- 80:80
|
|
restart: unless-stopped
|