From bb188becb03a3a031dab8d2052dfe64420146e2e Mon Sep 17 00:00:00 2001 From: Frank Date: Wed, 19 Aug 2026 15:55:00 -0700 Subject: [PATCH] ComfyUI: persist models/data under /home/dank/comfyui-data /opt is root-owned and not writable by the run user. Point the model/input/ output/custom_nodes mounts at a dank-owned path so the container can write them without sudo. The tests do not assert volume paths, so this is a no-op for the suite. --- dankclaw/compose.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dankclaw/compose.yaml b/dankclaw/compose.yaml index ef1c924..d0cfeae 100644 --- a/dankclaw/compose.yaml +++ b/dankclaw/compose.yaml @@ -16,7 +16,7 @@ services: # reached via the /dev/kfd + /dev/dri passthrough (checked host-side; the run # user is already in the render group). Only the 'video' group is added: # rootless podman cannot map the render gid into the container namespace. - # Models + data persist under /opt/comfyui. See ../docs/Dankclaw/ComfyUI.md. + # Models + data persist under /home/dank/comfyui-data. See ../docs/Dankclaw/ComfyUI.md. comfyui: build: context: . @@ -33,10 +33,10 @@ services: group_add: - video volumes: - - /opt/comfyui/models:/opt/ComfyUI/models - - /opt/comfyui/input:/opt/ComfyUI/input - - /opt/comfyui/output:/opt/ComfyUI/output - - /opt/comfyui/custom_nodes:/opt/ComfyUI/custom_nodes + - /home/dank/comfyui-data/models:/opt/ComfyUI/models + - /home/dank/comfyui-data/input:/opt/ComfyUI/input + - /home/dank/comfyui-data/output:/opt/ComfyUI/output + - /home/dank/comfyui-data/custom_nodes:/opt/ComfyUI/custom_nodes healthcheck: test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8188/')"] interval: 30s