feat: add CrowdSec service and configuration for container security

This commit is contained in:
2025-05-06 15:32:20 +08:00
parent 016ac4af28
commit 0df1163756
3 changed files with 62 additions and 0 deletions
+2
View File
@@ -86,6 +86,8 @@ services:
- traefik.http.routers.traefik-public-https.service=api@internal
# Define the port inside of the Docker service to use
- traefik.http.services.traefik-public.loadbalancer.server.port=8080
# - crowdsec.enable=true
# - crowdsec.labels.type=nginx
volumes:
# Add Docker as a mounted volume, so that Traefik can read the labels of other services
- /var/run/docker.sock:/var/run/docker.sock:ro