Format repo
This commit is contained in:
parent
3169149045
commit
8160b9da0b
37 changed files with 643 additions and 392 deletions
|
@ -1,4 +1,9 @@
|
|||
{ globals, config, lib, ... }: {
|
||||
{
|
||||
globals,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.immich.enable = lib.mkEnableOption "immich";
|
||||
|
||||
config = lib.mkIf config.immich.enable {
|
||||
|
@ -51,10 +56,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
volumeMounts = [{
|
||||
name = "data";
|
||||
mountPath = "/usr/src/app/upload";
|
||||
}];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "data";
|
||||
mountPath = "/usr/src/app/upload";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -90,10 +97,12 @@
|
|||
ports.ml.containerPort = 3003;
|
||||
env.MACHINE_LEARNING_WORKER_TIMEOUT.value = "600";
|
||||
|
||||
volumeMounts = [{
|
||||
name = "cache";
|
||||
mountPath = "/cache";
|
||||
}];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "cache";
|
||||
mountPath = "/cache";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -157,8 +166,8 @@
|
|||
containers.postgres = {
|
||||
image = globals.images.immich-postgres;
|
||||
imagePullPolicy = "IfNotPresent";
|
||||
command = [ "postgres" ];
|
||||
args = [ "-c" "shared_preload_libraries=vectors.so" "-c" "search_path=\"$$user\", public, vectors" "-c" "logging_collector=on" "-c" "max_wal_size=2GB" "-c" "shared_buffers=512MB" "-c" "wal_compression=on" ];
|
||||
command = ["postgres"];
|
||||
args = ["-c" "shared_preload_libraries=vectors.so" "-c" "search_path=\"$$user\", public, vectors" "-c" "logging_collector=on" "-c" "max_wal_size=2GB" "-c" "shared_buffers=512MB" "-c" "wal_compression=on"];
|
||||
ports.postgres.containerPort = 5432;
|
||||
securityContext.runAsUser = 999;
|
||||
securityContext.runAsGroup = 999;
|
||||
|
@ -175,10 +184,12 @@
|
|||
};
|
||||
};
|
||||
|
||||
volumeMounts = [{
|
||||
name = "data";
|
||||
mountPath = "/pgdata";
|
||||
}];
|
||||
volumeMounts = [
|
||||
{
|
||||
name = "data";
|
||||
mountPath = "/pgdata";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -239,7 +250,7 @@
|
|||
};
|
||||
|
||||
persistentVolumeClaims.cache.spec = {
|
||||
accessModes = [ "ReadWriteOnce" ];
|
||||
accessModes = ["ReadWriteOnce"];
|
||||
resources.requests.storage = "5Gi";
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue