Move CROWDSEC_COLLECTIONS env variable to env file

This commit is contained in:
2025-02-01 15:40:48 +02:00
parent 68ebca3d8c
commit 6d51f6bb55
2 changed files with 4 additions and 3 deletions

View File

@@ -0,0 +1,2 @@
#CROWDSEC_COLLECTIONS="crowdsecurity/linux crowdsecurity/traefik"
CROWDSEC_COLLECTIONS="crowdsecurity/traefik crowdsecurity/http-cve crowdsecurity/whitelist-good-actors crowdsecurity/iptables crowdsecurity/linux fulljackz/proxmox"

View File

@@ -7,11 +7,10 @@ services:
- no-new-privileges:true - no-new-privileges:true
networks: networks:
- proxy - proxy
#proxy:
# ipv4_address: ${CROWDSEC_IP} # You can specify a static IP
environment: environment:
GID: "${GID-1000}" GID: "${GID-1000}"
COLLECTIONS: ${CROWDSEC_COLLECTIONS} env_file:
- path: ./crowdsec.env
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ${DOCKERDIR}/crowdsec/acquis.d:/etc/crowdsec/acquis.d - ${DOCKERDIR}/crowdsec/acquis.d:/etc/crowdsec/acquis.d