From caeae1b17b2ae1ec8a7585a279c9a0acd318ac93 Mon Sep 17 00:00:00 2001 From: Cris Mathew Date: Wed, 28 Feb 2024 19:12:12 +0300 Subject: [PATCH] Update crowdsec/readme.md --- crowdsec/readme.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/crowdsec/readme.md b/crowdsec/readme.md index 1e3b40a..300f52c 100644 --- a/crowdsec/readme.md +++ b/crowdsec/readme.md @@ -25,4 +25,26 @@ mkdir config ``` ``` touch acquis.yaml -``` \ No newline at end of file +``` + +## Run + +Go to the directory with the compose.yml + +Run it with ```docker compose up -d``` + +## How to get the bouncer API key from crowdsec AND setup Traefik-Bouncer + +- After crowdsec is up and running run the following command: + +``` +docker exec crowdsec-example cscli bouncers add traefik-bouncer +``` + +- Copy the API key printed. You WON'T be able the get it again. + +- Paste this API key as the value for bouncer environment variable ```CROWDSEC_BOUNCER_API_KEY``` in your compose.yaml + +- Uncomment that whole section and save it. + +- Recreate crowdsec with ```docker compose up -d --force-recreate \ No newline at end of file