From 175c6ca8ceece9042deafbf0ce546f59b5ef99ca Mon Sep 17 00:00:00 2001 From: mateo Date: Wed, 15 May 2024 09:25:50 +0200 Subject: [PATCH] limite docker usage --- docker-compose.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index ade1d09c..89c17ea5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -19,6 +19,12 @@ services: max-size: "100m" max-file: "5" + deploy: + resources: + limits: + cpus: '3.0' # Limit to 3 CPUs + memory: '3g' # Limit memory usage to 3GB + # promtail: # image: grafana/promtail:2.7.3 # ports: