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.
This commit is contained in:
1 parent
88dcd3cc0f
commit
bb188becb0
1 file changed
+5
-5
@@ -16,7 +16,7 @@ services:
|
|||||||
# reached via the /dev/kfd + /dev/dri passthrough (checked host-side; the run
|
# 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:
|
# user is already in the render group). Only the 'video' group is added:
|
||||||
# rootless podman cannot map the render gid into the container namespace.
|
# 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:
|
comfyui:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
@@ -33,10 +33,10 @@ services:
|
|||||||
group_add:
|
group_add:
|
||||||
- video
|
- video
|
||||||
volumes:
|
volumes:
|
||||||
- /opt/comfyui/models:/opt/ComfyUI/models
|
- /home/dank/comfyui-data/models:/opt/ComfyUI/models
|
||||||
- /opt/comfyui/input:/opt/ComfyUI/input
|
- /home/dank/comfyui-data/input:/opt/ComfyUI/input
|
||||||
- /opt/comfyui/output:/opt/ComfyUI/output
|
- /home/dank/comfyui-data/output:/opt/ComfyUI/output
|
||||||
- /opt/comfyui/custom_nodes:/opt/ComfyUI/custom_nodes
|
- /home/dank/comfyui-data/custom_nodes:/opt/ComfyUI/custom_nodes
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8188/')"]
|
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8188/')"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
|
|||||||
Reference in new issue
Block a user