Use driver name in device name (and fix debug)

This commit is contained in:
niten 2024-05-22 10:44:02 -07:00
parent 713b1c42c2
commit 0fd4340177
1 changed files with 3 additions and 6 deletions

View File

@ -13,15 +13,12 @@ let
services.immich-ml = { services.immich-ml = {
image = image =
"ghcr.io/immich-app/immich-machine-learning:${cfg.immich-version}-cuda"; "ghcr.io/immich-app/immich-machine-learning:${cfg.immich-version}-cuda";
deploy.resources.reservations.devices = [{ deploy.resources.reservations.devices =
driver = "nvidia"; [{ capabilities = [ "nvidia-gpu" "nvidia-compute" "nvidia-video" ]; }];
count = 1;
capabilities = [ "gpu" "compute" "video" ];
}];
ports = [ "${toString cfg.port}:3003" ]; ports = [ "${toString cfg.port}:3003" ];
restart = "always"; restart = "always";
volumes = [ "${cfg.state-directory}:/cache" ]; volumes = [ "${cfg.state-directory}:/cache" ];
env = mkIf cfg.debug { IMMICH_LOG_LEVEL = "debug"; }; environment = mkIf cfg.debug { IMMICH_LOG_LEVEL = "debug"; };
}; };
}); });