Update crowdsec/readme.md
This commit is contained in:
+23
-1
@@ -25,4 +25,26 @@ mkdir config
|
|||||||
```
|
```
|
||||||
```
|
```
|
||||||
touch acquis.yaml
|
touch acquis.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
Reference in New Issue
Block a user