Use driver name in device name (and fix debug)
This commit is contained in:
parent
713b1c42c2
commit
0fd4340177
|
@ -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"; };
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue