mirror of
https://github.com/swissmakers/fail2ban-ui.git
synced 2026-04-17 05:53:15 +02:00
Add docker compose example and update the documentation to it
This commit is contained in:
42
docker-compose.example.yml
Normal file
42
docker-compose.example.yml
Normal file
@@ -0,0 +1,42 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
fail2ban-ui:
|
||||
# Use pre-built image from registry
|
||||
image: registry.swissmakers.ch/infra/fail2ban-ui:latest
|
||||
|
||||
# Or build from source (uncomment to use):
|
||||
# build:
|
||||
# context: .
|
||||
# dockerfile: Dockerfile
|
||||
|
||||
container_name: fail2ban-ui
|
||||
network_mode: host
|
||||
restart: unless-stopped
|
||||
|
||||
environment:
|
||||
# Custom port (optional, defaults to 8080)
|
||||
# Change this to use a different port for the web interface
|
||||
- PORT=8080
|
||||
|
||||
volumes:
|
||||
# Required: Configuration and database storage
|
||||
# Stores SQLite database, application settings, and SSH keys
|
||||
- /opt/podman-fail2ban-ui:/config:Z
|
||||
|
||||
# Required: Fail2Ban configuration directory
|
||||
# Needed for managing local Fail2Ban instance
|
||||
- /etc/fail2ban:/etc/fail2ban:Z
|
||||
|
||||
# Required: Fail2Ban socket directory
|
||||
# Needed for local Fail2Ban control socket access
|
||||
- /var/run/fail2ban:/var/run/fail2ban
|
||||
|
||||
# Optional: System logs (read-only)
|
||||
# Useful for filter testing and log analysis (or if planned to integrate fal2ban directly in this container)
|
||||
- /var/log:/var/log:ro
|
||||
|
||||
# Optional: GeoIP databases (read-only)
|
||||
# Enables geographic IP analysis features (GeoIP must be installed and configured on the host)
|
||||
- /usr/share/GeoIP:/usr/share/GeoIP:ro
|
||||
|
||||
Reference in New Issue
Block a user