2026-05-12 22:53:46 +00:00
|
|
|
services:
|
|
|
|
|
crowdsec:
|
2026-05-14 03:25:30 +00:00
|
|
|
image: crowdsecurity/crowdsec:v1.6.8
|
2026-05-12 22:53:46 +00:00
|
|
|
container_name: crowdsec
|
2026-05-14 03:25:30 +00:00
|
|
|
security_opt:
|
|
|
|
|
- no-new-privileges:true
|
2026-05-12 22:53:46 +00:00
|
|
|
environment:
|
2026-05-14 03:25:30 +00:00
|
|
|
GID: "${GID}"
|
2026-05-12 22:53:46 +00:00
|
|
|
COLLECTIONS: "crowdsecurity/linux crowdsecurity/traefik"
|
|
|
|
|
volumes:
|
2026-05-14 03:25:30 +00:00
|
|
|
- ./acquis.yaml:/etc/crowdsec/acquis.yaml:ro
|
|
|
|
|
- /srv/docker/crowdsec/crowdsec-config:/etc/crowdsec/:ro
|
|
|
|
|
- /srv/docker/crowdsec/crowdsec-config/online_api_credentials.yaml:/etc/crowdsec/online_api_credentials.yaml:rw
|
|
|
|
|
- /srv/docker/crowdsec/crowdsec-config/local_api_credentials.yaml:/etc/crowdsec/local_api_credentials.yaml:rw
|
2026-05-12 22:53:46 +00:00
|
|
|
- /srv/docker/crowdsec/crowdsec-db:/var/lib/crowdsec/data/
|
|
|
|
|
- traefik_traefik-logs:/var/log/traefik/:ro
|
2026-05-13 18:23:44 +00:00
|
|
|
labels:
|
|
|
|
|
- "traefik.enable=false"
|
2026-05-12 22:53:46 +00:00
|
|
|
networks:
|
|
|
|
|
- traefik_network
|
|
|
|
|
restart: unless-stopped
|
2026-05-14 03:25:30 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "cscli", "version"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
2026-05-12 22:53:46 +00:00
|
|
|
|
|
|
|
|
bouncer-traefik:
|
2026-05-14 03:25:30 +00:00
|
|
|
image: ghcr.io/crowdsecurity/traefik-bouncer:latest
|
2026-05-12 22:53:46 +00:00
|
|
|
container_name: bouncer-traefik
|
2026-05-14 03:25:30 +00:00
|
|
|
security_opt:
|
|
|
|
|
- no-new-privileges:true
|
2026-05-12 22:53:46 +00:00
|
|
|
environment:
|
2026-05-13 18:01:39 +00:00
|
|
|
CROWDSEC_BOUNCER_API_KEY: ${CROWDSEC_BOUNCER_API_KEY}
|
2026-05-12 22:53:46 +00:00
|
|
|
CROWDSEC_AGENT_HOST: crowdsec:8080
|
|
|
|
|
networks:
|
2026-05-14 03:25:30 +00:00
|
|
|
- traefik_network
|
2026-05-12 22:53:46 +00:00
|
|
|
depends_on:
|
2026-05-14 03:25:30 +00:00
|
|
|
crowdsec:
|
|
|
|
|
condition: service_healthy
|
2026-05-12 22:53:46 +00:00
|
|
|
restart: unless-stopped
|
2026-05-14 03:25:30 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "wget", "--spider", "-q", "http://localhost:8080/api/v1/ping"]
|
|
|
|
|
interval: 10s
|
|
|
|
|
timeout: 5s
|
|
|
|
|
retries: 3
|
2026-05-12 22:53:46 +00:00
|
|
|
|
|
|
|
|
networks:
|
|
|
|
|
traefik_network:
|
|
|
|
|
external: true
|
|
|
|
|
|
|
|
|
|
volumes:
|
2026-05-14 03:25:30 +00:00
|
|
|
traefik_traefik-logs:
|
|
|
|
|
external: true
|