First push from proxy (docker host) to gitea
This commit is contained in:
commit
a69fa8cc56
25 changed files with 781 additions and 0 deletions
2
crowdsec/Dockerfile
Normal file
2
crowdsec/Dockerfile
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
FROM metabase/metabase
|
||||
RUN mkdir /data/ && wget https://crowdsec-statics-assets.s3-eu-west-1.amazonaws.com/metabase_sqlite.zip && unzip metabase_sqlite.zip -d /data/
|
||||
4
crowdsec/data/config/acquis.yaml
Normal file
4
crowdsec/data/config/acquis.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
filenames:
|
||||
- /var/log/traefik/*
|
||||
labels:
|
||||
type: traefik
|
||||
38
crowdsec/docker-compose.yml
Normal file
38
crowdsec/docker-compose.yml
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
version: '3.8'
|
||||
services:
|
||||
guard:
|
||||
image: crowdsecurity/crowdsec:v1.4.3
|
||||
container_name: crowdsec
|
||||
hostname: guard
|
||||
environment:
|
||||
COLLECTIONS: "crowdsecurity/linux crowdsecurity/traefik"
|
||||
volumes:
|
||||
- /root/crowdsec/data/config/acquis.yaml:/etc/crowdsec/acquis.yaml
|
||||
- crowdsec-db:/var/lib/crowdsec/data/
|
||||
- crowdsec-config:/etc/crowdsec/
|
||||
- traefik_traefik-logs:/var/log/traefik/:ro
|
||||
networks:
|
||||
- proxy
|
||||
restart: unless-stopped
|
||||
|
||||
bouncer-traefik:
|
||||
image: fbonalair/traefik-crowdsec-bouncer:latest
|
||||
container_name: bouncer-traefik
|
||||
hostname: bouncer-traefik
|
||||
environment:
|
||||
CROWDSEC_BOUNCER_API_KEY: 22bae1bfe5ec4d708efc9471a665a3c1
|
||||
CROWDSEC_AGENT_HOST: guard:8080
|
||||
networks:
|
||||
- proxy
|
||||
depends_on:
|
||||
- guard
|
||||
restart: unless-stopped
|
||||
|
||||
networks:
|
||||
proxy:
|
||||
external: true
|
||||
volumes:
|
||||
crowdsec-db:
|
||||
crowdsec-config:
|
||||
traefik_traefik-logs:
|
||||
external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue