From 018bf692891246d688da1c683795943b8cf3b466 Mon Sep 17 00:00:00 2001 From: Aykhan Shahsuvarov Date: Tue, 16 Jun 2026 21:32:07 +0400 Subject: [PATCH] crowdsec: add resource limits --- crowdsec/docker-compose.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/crowdsec/docker-compose.yaml b/crowdsec/docker-compose.yaml index 03f71fe..904e5f3 100644 --- a/crowdsec/docker-compose.yaml +++ b/crowdsec/docker-compose.yaml @@ -48,6 +48,11 @@ services: - /run/log/journal:/run/log/journal:ro - /etc/machine-id:/etc/machine-id:ro - /var/run/docker.sock:/var/run/docker.sock:ro + deploy: + resources: + limits: + cpus: "1.0" + memory: 768M logging: driver: "json-file" options: @@ -70,6 +75,11 @@ services: - ./data/geoip:/geoip:ro depends_on: - crowdsec + deploy: + resources: + limits: + cpus: "0.25" + memory: 128M logging: driver: "json-file" options: @@ -89,6 +99,11 @@ services: GEOIPUPDATE_FREQUENCY: "24" volumes: - ./data/geoip:/usr/share/GeoIP + deploy: + resources: + limits: + cpus: "0.25" + memory: 64M logging: driver: "json-file" options: