Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 882 Bytes

File metadata and controls

18 lines (12 loc) · 882 Bytes

Description

This example shows you a SWAG example. Thanks to TheSpad for creating the bouncer mod and writing a blog article which this example is based on.

docker swag

This example contains multiple containers :

  • crowdsec : Read SWAG logs from the mounted volumes
  • swag : The SWAG container
  • whoami : A simple container to test the setup

Before running the example, you need to create a api within the .env file. You can do this by running the following command :

echo "CROWDSEC_API_KEY=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 32)" > .env

Prerequisites: Docker / Docker Compose