implemented bind address environment variable.

This commit is contained in:
2025-12-30 17:08:20 +01:00
parent 99dd77e375
commit ad6f86146d
5 changed files with 44 additions and 11 deletions

View File

@@ -32,7 +32,13 @@ services:
privileged: true # needed because the fail2ban-ui container needs to modify the fail2ban config owned by root inside the linuxserver-fail2ban container
network_mode: host
environment:
# Optional: Change this to use a different port for the web interface (defaults is 8080)
- PORT=3080
# Optional: Bind to a specific IP address (default: 0.0.0.0)
# This is useful when running with host networking to prevent exposing
# the web UI to unprotected networks. Set to a specific IP (e.g., 127.0.0.1
# or a specific interface IP) to restrict access.
# - BIND_ADDRESS=127.0.0.1
volumes:
# Required for fail2ban-ui: Stores SQLite database, application settings, and SSH keys of the fail2ban-ui container
- ./config:/config:Z