Links

Docker Compose

CrowdSec Installation

Create the CrowdSec Shared Log Folder

sudo mkdir /var/log/crowdsec; sudo chown -R $USER:$USER /var/log/crowdsec

Create the CrowdSec appdata Folder

sudo mkdir /opt/appdata/crowdsec

docker-compose.yml template

sudo nano /opt/appdata/crowdsec/docker-compose.yml
version: "3.4"
​
services:
crowdsec:
image: crowdsecurity/crowdsec
container_name: crowdsec
expose:
- 8080
environment:
PGID: "1000"
volumes:
- /opt/appdata/crowdsec/data:/var/lib/crowdsec/data
- /opt/appdata/crowdsec:/etc/crowdsec
- /var/log/auth.log:/var/log/auth.log:ro
- /var/log/crowdsec:/var/log/crowdsec:ro
restart: unless-stopped
​
networks:
default:
external: true
name: proxy

Start the Container

sudo docker-compose up -d