Fix: Disable CrowdSec bouncer by default to resolve image pull error

The crowdsecurity/traefik-bouncer image was causing deployment failures.
Commented out the bouncer container and middleware references - CrowdSec
will still detect and log threats, but automatic blocking is disabled
until the bouncer is properly configured with an API key.

To enable later:
1. docker exec crowdsec cscli bouncers add traefik-bouncer
2. Add CROWDSEC_API_KEY env var
3. Uncomment bouncer container and middleware
This commit is contained in:
ImpulsiveFPS 2026-02-03 12:23:05 +01:00
parent fa8bde3940
commit 2613b3471c
3 changed files with 23 additions and 21 deletions

View File

@ -161,21 +161,23 @@ services:
timeout: 10s
retries: 3
# CrowdSec bouncer for Traefik
crowdsec-bouncer-traefik:
image: crowdsecurity/traefik-bouncer:v0.1.0
container_name: crowdsec-bouncer-traefik
restart: unless-stopped
networks:
- crowdsec
environment:
- CROWDSEC_BOUNCER_API_KEY=${CROWDSEC_API_KEY:-}
- CROWDSEC_AGENT_HOST=crowdsec:8080
- CROWDSEC_BOUNCER_LOG_LEVEL=1
labels:
- "traefik.enable=false"
depends_on:
- crowdsec
# CrowdSec bouncer for Traefik (optional - enables automatic IP blocking)
# To enable: docker exec crowdsec cscli bouncers add traefik-bouncer
# Then add CROWDSEC_API_KEY to environment variables
# crowdsec-bouncer-traefik:
# image: crowdsecurity/traefik-bouncer:latest
# container_name: crowdsec-bouncer-traefik
# restart: unless-stopped
# networks:
# - crowdsec
# environment:
# - CROWDSEC_BOUNCER_API_KEY=${CROWDSEC_API_KEY}
# - CROWDSEC_AGENT_HOST=crowdsec:8080
# - CROWDSEC_BOUNCER_LOG_LEVEL=1
# labels:
# - "traefik.enable=false"
# depends_on:
# - crowdsec
# ============================================================================
# INTERNAL DNS - AdGuard Home

View File

@ -119,10 +119,10 @@ http:
realm: "LemonLink Secured"
# ============================================================================
# CROWDSEC MIDDLEWARE
# CROWDSEC MIDDLEWARE (enable when using crowdsec-bouncer-traefik container)
# ============================================================================
crowdsec-bouncer:
forwardAuth:
address: http://crowdsec-bouncer-traefik:8080/api/v1/forwardAuth
trustForwardHeader: true
# crowdsec-bouncer:
# forwardAuth:
# address: http://crowdsec-bouncer-traefik:8080/api/v1/forwardAuth
# trustForwardHeader: true

View File

@ -60,7 +60,7 @@ entryPoints:
sans:
- "*.lemonlink.eu"
middlewares:
- crowdsec-bouncer@file
# - crowdsec-bouncer@file # Enable when using CrowdSec bouncer
- security-headers@file
- rate-limit@file
forwardedHeaders: