working comfyui
This commit is contained in:
1 parent
92df288796
commit
de4530784f
2 files changed
+8
-6
No files matched your search
@@ -15,9 +15,9 @@ def valid_remote_profiles [] {
|
|||||||
|
|
||||||
def is-valid-profile [name: string, on_remote: bool = false] {
|
def is-valid-profile [name: string, on_remote: bool = false] {
|
||||||
if $on_remote {
|
if $on_remote {
|
||||||
(valid_remote_profiles | where name == $name | length) == 1
|
(valid_remote_profiles | where {|$it| $it == $name} | length) == 1
|
||||||
} else {
|
} else {
|
||||||
(valid_profiles | where name == $name | length) == 1
|
(valid_profiles | where {|$it| $it == $name} | length) == 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,9 @@ in
|
|||||||
"d ${cfg.rocm.dataDir}/models/controlnet 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
"d ${cfg.rocm.dataDir}/models/controlnet 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
"d ${cfg.rocm.dataDir}/output 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
"d ${cfg.rocm.dataDir}/output 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
"d ${cfg.rocm.dataDir}/custom_nodes 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
"d ${cfg.rocm.dataDir}/custom_nodes 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
|
"d ${cfg.rocm.dataDir}/user 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
|
"d ${cfg.rocm.dataDir}/input 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
|
"d ${cfg.rocm.dataDir}/temp 0755 ${toString cfg.rocm.uid} ${toString cfg.rocm.gid} -"
|
||||||
];
|
];
|
||||||
|
|
||||||
# Build script for the Docker image
|
# Build script for the Docker image
|
||||||
@@ -152,6 +155,9 @@ in
|
|||||||
|
|
||||||
volumes = [
|
volumes = [
|
||||||
"${cfg.rocm.dataDir}/custom_nodes:/workspace/ComfyUI/custom_nodes"
|
"${cfg.rocm.dataDir}/custom_nodes:/workspace/ComfyUI/custom_nodes"
|
||||||
|
"${cfg.rocm.dataDir}/user:/workspace/ComfyUI/user"
|
||||||
|
"${cfg.rocm.dataDir}/input:/workspace/ComfyUI/input"
|
||||||
|
"${cfg.rocm.dataDir}/temp:/workspace/ComfyUI/temp"
|
||||||
] ++ (if cfg.rocm.modelsDir != null
|
] ++ (if cfg.rocm.modelsDir != null
|
||||||
then [ "${cfg.rocm.modelsDir}:/workspace/ComfyUI/models" ]
|
then [ "${cfg.rocm.modelsDir}:/workspace/ComfyUI/models" ]
|
||||||
else [ "${cfg.rocm.dataDir}/models:/workspace/ComfyUI/models" ])
|
else [ "${cfg.rocm.dataDir}/models:/workspace/ComfyUI/models" ])
|
||||||
@@ -165,10 +171,6 @@ in
|
|||||||
systemd.services."docker-comfyui" = {
|
systemd.services."docker-comfyui" = {
|
||||||
after = [ "docker.service" ];
|
after = [ "docker.service" ];
|
||||||
requires = [ "docker.service" ];
|
requires = [ "docker.service" ];
|
||||||
serviceConfig = {
|
|
||||||
Restart = "on-failure";
|
|
||||||
RestartSec = "10s";
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user