services: crowdsec: profiles: ["core","all","crowdsec"] # image: crowdsecurity/crowdsec:latest build: ${PROJECT_ROOT}/core/crowdsec container_name: crowdsec restart: always environment: - COLLECTIONS=crowdsecurity/traefik # - CROWDSEC_LAPI_KEY=${CROWDSEC_LAPI_KEY} volumes: - ${PROJECT_ROOT}/core/crowdsec/logs:/logs:ro - ${PROJECT_ROOT}/core/crowdsec/data:/var/lib/crowdsec/data - ${PROJECT_ROOT}/core/crowdsec/config:/etc/crowdsec networks: # - reverse_proxy - traefik healthcheck: test: ["CMD-SHELL", "cscli metrics || exit 1"] interval: 30s timeout: 10s retries: 3 start_period: 15s