mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-22 16:00:19 +00:00
36 lines
999 B
YAML
36 lines
999 B
YAML
|
version: '3.8'
|
||
|
services:
|
||
|
crowdsec:
|
||
|
image: crowdsecurity/crowdsec:latest
|
||
|
container_name: crowdsec
|
||
|
environment:
|
||
|
GID: "${GID-1000}"
|
||
|
COLLECTIONS: "crowdsecurity/linux crowdsecurity/traefik"
|
||
|
volumes:
|
||
|
- /home/ubuntu/docker/crowdsec/acquis.yaml:/etc/crowdsec/acquis.yaml
|
||
|
- /home/ubuntu/docker/crowdsec/db:/var/lib/crowdsec/data/
|
||
|
- /home/ubuntu/docker/crowdsec/config:/etc/crowdsec/
|
||
|
- /home/ubuntu/docker/traefik/logs:/var/log/traefik/:ro
|
||
|
networks:
|
||
|
- proxy
|
||
|
security_opt:
|
||
|
- no-new-privileges:true
|
||
|
restart: unless-stopped
|
||
|
|
||
|
bouncer-traefik:
|
||
|
image: docker.io/fbonalair/traefik-crowdsec-bouncer:latest
|
||
|
container_name: bouncer-traefik
|
||
|
environment:
|
||
|
CROWDSEC_BOUNCER_API_KEY: create_a_random_api_key
|
||
|
CROWDSEC_AGENT_HOST: crowdsec:8080
|
||
|
networks:
|
||
|
- proxy
|
||
|
depends_on:
|
||
|
- crowdsec
|
||
|
restart: unless-stopped
|
||
|
security_opt:
|
||
|
- no-new-privileges:true
|
||
|
networks:
|
||
|
proxy:
|
||
|
external: true
|