forked from ethibox/awesome-stacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrowdsec.yml
36 lines (32 loc) · 856 Bytes
/
crowdsec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# DOMAIN=example.com docker stack deploy -c crowdsec.yml crowdsec
services:
crowdsec:
image: crowdsecurity/crowdsec:${VERSION:-v1.6.1-2}
environment:
- COLLECTIONS=${COLLECTIONS:-crowdsecurity/traefik}
- CUSTOM_HOSTNAME=${CUSTOM_HOSTNAME:-crowdsec}
volumes:
- ${VOLUME_PATH}config:/etc/crowdsec
- ${VOLUME_PATH}data:/var/lib/crowdsec/data/
- /var/log/traefik:/var/log/traefik:ro
networks:
- traefik
- internal
crowdsec-bouncer:
image: fbonalair/traefik-crowdsec-bouncer:latest
environment:
- CROWDSEC_BOUNCER_API_KEY=${CROWDSEC_BOUNCER_API_KEY}
- CROWDSEC_AGENT_HOST=crowdsec:8080
networks:
- traefik
- internal
volumes:
data:
config:
networks:
internal:
driver: overlay
attachable: true
traefik:
external: true
name: traefik-net