From 768a743ff0ddfa98adcff4e0d3a268b31ebe1721 Mon Sep 17 00:00:00 2001 From: drholy Date: Sun, 17 May 2026 22:36:07 +0700 Subject: [PATCH] adding support runs on nvidia pascal videocards --- Dockerfile | 2 ++ docker-compose.yml | 27 ++++++++++++++------------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index e069474..b767be7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -46,6 +46,8 @@ RUN git clone https://github.com/comfyanonymous/ComfyUI.git WORKDIR /app/ComfyUI # 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 # (Optional) Clean up pip cache to reduce image size diff --git a/docker-compose.yml b/docker-compose.yml index 55ba850..b6be10a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,28 +3,29 @@ # http://github.com/kaouthia services: - comfyk: + comfyui: build: dockerfile: Dockerfile - image: comfyui:latest + image: comfyui-v3:latest container_name: comfyui ports: + # ComfyUI web interface - "8188:8188" volumes: - # persist your models, output, and settings: - - c:/home/user/comfyui/models:/app/ComfyUI/models - - # persist your output images: - - c:/home/user/comfyui/output:/app/ComfyUI/output - + # Persist models (checkpoints, LoRAs, VAEs, etc.) + - /srv/comfyui/models:/app/ComfyUI/models + # Persist generated images + - /srv/comfyui/output:/app/ComfyUI/output # persist all your settings & extra nodes: - - c:/home/user/comfyui/settings:/app/ComfyUI/user/default:rw - - # persist just your saved flows (overrides the workflows/ in default): - - c:/home/user/comfyui/flows:/app/ComfyUI/user/default/workflows:rw - + - /srv/comfyui/settings:/app/ComfyUI/user/default + # Persist custom nodes + - /srv/comfyui/custom_nodes:/app/ComfyUI/custom_nodes + # Persist workflow files + - /srv/comfyui/workflows:/app/ComfyUI/user/default/workflows:rw + user: "1000:1000" runtime: nvidia environment: + - CLI_ARGS=--listen 0.0.0.0 - NVIDIA_VISIBLE_DEVICES=all stdin_open: true tty: true