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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user