mirror of
https://github.com/Haxxnet/Compose-Examples.git
synced 2025-11-23 17:04:27 +01:00
chore: add crowdsec
This commit is contained in:
6
examples/crowdsec/README.md
Normal file
6
examples/crowdsec/README.md
Normal file
@@ -0,0 +1,6 @@
|
||||
# References
|
||||
- https://www.reddit.com/r/selfhosted/comments/1dcn19v/standing_up_the_crowdsec_bouncer_plugin_in_traefik/
|
||||
|
||||
# Notes
|
||||
|
||||
- TBA
|
||||
23
examples/crowdsec/docker-compose.yml
Normal file
23
examples/crowdsec/docker-compose.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
services:
|
||||
|
||||
crowdsec:
|
||||
image: crowdsecurity/crowdsec:latest
|
||||
container_name: crowdsec
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- 8080
|
||||
volumes:
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/crowdsec/logs:/var/log/crowdsec:ro
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/crowdsec/data:/var/lib/crowdsec/data
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/crowdsec/etc:/etc/crowdsec
|
||||
- ${DOCKER_VOLUME_STORAGE:-/mnt/docker-volumes}/traefik/logs:/var/log/traefik:ro
|
||||
- /var/log/auth.log:/var/log/auth.log:ro
|
||||
environment:
|
||||
- PGID=1000
|
||||
- BOUNCER_KEY_TRAEFIK=$CROWDSEC-BOUNCER-API-TOKEN
|
||||
networks:
|
||||
- proxy
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
Reference in New Issue
Block a user