disable immich-ml (OOM)

This commit is contained in:
cy 2024-12-20 18:17:59 -05:00
parent 3e27b372a9
commit 0ca581c1bf

View file

@ -69,17 +69,17 @@ in
networks = [ "immich-net" ];
};
immich-ml = {
image = "ghcr.io/immich-app/immich-machine-learning:release";
autoStart = true;
pull = "newer";
environment = {
REDIS_HOSTNAME = "immich-redis";
DB_HOSTNAME = "immich-db";
};
volumes = [ "${modelCache}:/cache" ];
networks = [ "immich-net" ];
};
# immich-ml = {
# image = "ghcr.io/immich-app/immich-machine-learning:release";
# autoStart = true;
# pull = "newer";
# environment = {
# REDIS_HOSTNAME = "immich-redis";
# DB_HOSTNAME = "immich-db";
# };
# volumes = [ "${modelCache}:/cache" ];
# networks = [ "immich-net" ];
# };
};
systemd.services.create-immich-net = {
@ -88,7 +88,7 @@ in
"${backend}-immich.service"
"${backend}-immich-db.service"
"${backend}-immich-redis.service"
"${backend}-immich-ml.service"
# "${backend}-immich-ml.service"
];
script = ''
${pkgs.podman}/bin/podman network exists immich-net || \