adding support runs on nvidia pascal videocards
This commit is contained in:
@@ -46,6 +46,8 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI.git
|
|||||||
WORKDIR /app/ComfyUI
|
WORKDIR /app/ComfyUI
|
||||||
|
|
||||||
# Install ComfyUI dependencies
|
# Install ComfyUI dependencies
|
||||||
|
RUN pip install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu126
|
||||||
|
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
# (Optional) Clean up pip cache to reduce image size
|
# (Optional) Clean up pip cache to reduce image size
|
||||||
|
|||||||
@@ -3,28 +3,29 @@
|
|||||||
# http://github.com/kaouthia
|
# http://github.com/kaouthia
|
||||||
|
|
||||||
services:
|
services:
|
||||||
comfyk:
|
comfyui:
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
image: comfyui:latest
|
image: comfyui-v3:latest
|
||||||
container_name: comfyui
|
container_name: comfyui
|
||||||
ports:
|
ports:
|
||||||
|
# ComfyUI web interface
|
||||||
- "8188:8188"
|
- "8188:8188"
|
||||||
volumes:
|
volumes:
|
||||||
# persist your models, output, and settings:
|
# Persist models (checkpoints, LoRAs, VAEs, etc.)
|
||||||
- c:/home/user/comfyui/models:/app/ComfyUI/models
|
- /srv/comfyui/models:/app/ComfyUI/models
|
||||||
|
# Persist generated images
|
||||||
# persist your output images:
|
- /srv/comfyui/output:/app/ComfyUI/output
|
||||||
- c:/home/user/comfyui/output:/app/ComfyUI/output
|
|
||||||
|
|
||||||
# persist all your settings & extra nodes:
|
# persist all your settings & extra nodes:
|
||||||
- c:/home/user/comfyui/settings:/app/ComfyUI/user/default:rw
|
- /srv/comfyui/settings:/app/ComfyUI/user/default
|
||||||
|
# Persist custom nodes
|
||||||
# persist just your saved flows (overrides the workflows/ in default):
|
- /srv/comfyui/custom_nodes:/app/ComfyUI/custom_nodes
|
||||||
- c:/home/user/comfyui/flows:/app/ComfyUI/user/default/workflows:rw
|
# Persist workflow files
|
||||||
|
- /srv/comfyui/workflows:/app/ComfyUI/user/default/workflows:rw
|
||||||
|
user: "1000:1000"
|
||||||
runtime: nvidia
|
runtime: nvidia
|
||||||
environment:
|
environment:
|
||||||
|
- CLI_ARGS=--listen 0.0.0.0
|
||||||
- NVIDIA_VISIBLE_DEVICES=all
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
tty: true
|
tty: true
|
||||||
|
|||||||
Reference in New Issue
Block a user