From 6737aaa2890f722e12b9bb2b703f83551be06e9e Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Thu, 15 Oct 2026 20:44:30 -0400 Subject: [PATCH] limit container --- hosts/hl-bigbox2/services/immich.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/hl-bigbox2/services/immich.nix b/hosts/hl-bigbox2/services/immich.nix index 86c8708..f5df623 100644 --- a/hosts/hl-bigbox2/services/immich.nix +++ b/hosts/hl-bigbox2/services/immich.nix @@ -32,6 +32,10 @@ in image = "ghcr.io/immich-app/immich-server:${version}"; environmentFiles = [ config.age.secrets.immich-shared.path ]; environment = envVars; + deploy.resources.limits = { + cpus = "1"; + memory = "8G"; + }; networks = { lan.ipv4_address = app.ip; main = { }; @@ -52,6 +56,10 @@ in environment = envVars; networks.main = { }; volumes = [ "model-cache:/cache" ]; + deploy.resources.limits = { + cpus = "1"; + memory = "8G"; + }; restart = "always"; }; services.redis = {