Skip to content

crowdsec + crowdsec-firewall-bouncer in a single docker image

License

Notifications You must be signed in to change notification settings

klementng/docker-crowdsec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crowdsec + Crowdsec-firewall-bouncer

Automatic configuration of crowdsec + crowdsec-firewall-bouncer in a single docker image

Install

Installation using docker compose

services:
  crowdsec:
    image: ghcr.io/klementng/docker-crowdsec:main
    container_name: crowdsec
    cap_add:
      - NET_ADMIN
    environment:
      - TZ=${TZ}
      - COLLECTIONS=crowdsecurity/nginx
      - LOCAL_API_URL=http://0.0.0.0:55555 # bind to the following port
    volumes:
      - ./crowdsec/config:/etc/crowdsec
      - ./crowdsec/data:/var/lib/crowdsec/data/
    userns_mode: host
    network_mode: host
    restart: unless-stopped

Configuring

This container extends the base docker image of crowdsec. Most setting remain the same as the base image.

Files

The following file are overwritten on startup of container:

  • config.yml
  • bouncers/crowdsec-firewall-bouncer.yaml

To modify the above files create new .local in the same directory file (i.e. config.yaml.local). More Info:

Docker Environment variable

Variable Default Description
LOCAL_API_URL http://0.0.0.0:8080 *Modified* Set Server listening IP + LAPI url
PROMETHEUS_ENABLED true Enable prometheus
PROMETHEUS_LEVEL full prometheus metrics level
PROMETHEUS_LISTEN_ADDR 127.0.0.1 Set prometheus listening IP
PROMETHEUS_LISTEN_PORT 6060 Set prometheus listening port
Others Link

About

crowdsec + crowdsec-firewall-bouncer in a single docker image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages