Docker image for https://marketplace.dify.ai/plugins/langgenius/comfyui
1.7K
ComfyUI-Manager 是一款旨在增强 ComfyUI 易用性的扩展程序。它提供管理功能,用于安装、移除、禁用和启用 ComfyUI 的各种自定义节点。此外,此扩展程序还提供了一个中心功能和便捷功能,方便用户访问 ComfyUI 中的各种信息。 https://github.com/Comfy-Org/ComfyUI-Manager
ComfyUI 的一套强大的工具,可以在菜单上实时查看 ComfyUI 使用的资源(CPU、GPU、RAM、VRAM、GPU 温度和内存)! https://github.com/crystian/ComfyUI-Crystools
需要安装traefik
docker compose -p comfyui up -d
services:
comfyui:
image: duhongming/comfyui:v0.3.63-3.13.7-bookworm-cu129
container_name: comfyui
ports:
- "8188:8188"
volumes:
- /AppData/comfyui/models/:/ComfyUI/models
- /AppData/comfyui/input/:/ComfyUI/input
- /AppData/comfyui/output/:/ComfyUI/output
- /AppData/comfyui/user/:/ComfyUI/user
#- /AppData/comfyui/custom_nodes/:/ComfyUI/custom_nodes
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
restart: unless-stopped
networks:
- traefik
labels:
# https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#traefikenable
- "traefik.enable=true"
# https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#traefikdockernetwork
- "traefik.docker.network=traefik"
# https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#routers
- "traefik.http.routers.comfyui.rule=Host(`comfyui.example.top`)"
- "traefik.http.routers.comfyui.entrypoints=http"
# https://doc.traefik.io/traefik/reference/routing-configuration/other-providers/docker/#services
- "traefik.http.services.comfyui.loadbalancer.server.port=8188"
networks:
traefik:
external: true
docker run --name comfyui -dp 8188:8188 \
--runtime=nvidia --gpus all \
-v /AppData/comfyui/models/:/ComfyUI/models \
-v /AppData/comfyui/input/:/ComfyUI/input \
-v /AppData/comfyui/output/:/ComfyUI/output \
-v /AppData/comfyui/user/:/ComfyUI/user \
#-v /AppData/comfyui/custom_nodes/:/ComfyUI/custom_nodes \
duhongming/comfyui:v0.3.63-3.13.7-bookworm-cu129
也可以自行改造
# https://hub.docker.com/r/duhongming/comfyui
# https://hub.docker.com/layers/l125/comfyui-for-dify/v0.2.3-cu129/images/sha256-5043c7959736cb27099b21e551555e4471c5c51ff625d951890e32a4b0ea31b9
# https://www.debian.org/releases/ 12 Bookworm
# https://www.python.org/downloads/ 3.13.7
# Python 3.13 is very well supported. If you have trouble with some custom node dependencies you can try 3.12
FROM python:3.13.7-bookworm
RUN pip install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu129
RUN echo ${LATEST_TAG}
ARG LATEST_TAG=${LATEST_TAG}
WORKDIR /
# 添加一个随机参数(如当前时间戳),每次构建时变化,使缓存失效
ARG CACHEBUST=1
RUN git clone https://github.com/comfyanonymous/ComfyUI.git && cd ComfyUI && git checkout ${LATEST_TAG}
RUN pip install -r /ComfyUI/requirements.txt
WORKDIR /ComfyUI/custom_nodes/
RUN git clone https://github.com/ltdrdata/ComfyUI-Manager.git && pip install -r ComfyUI-Manager/requirements.txt
RUN git clone https://github.com/crystian/ComfyUI-Crystools.git && pip install -r ComfyUI-Crystools/requirements.txt
#RUN git clone https://github.com/ServiceStack/comfy-asset-downloader.git && pip install -r comfy-asset-downloader/requirements.txt
#RUN git clone https://github.com/kijai/ComfyUI-DepthAnythingV2.git ComfyUI-DepthAnythingV2/;pip install -r ComfyUI-DepthAnythingV2/requirements.txt
#RUN git clone https://github.com/spacepxl/ComfyUI-Depth-Pro.git ComfyUI-Depth-Pro/;pip install -r ComfyUI-Depth-Pro/requirements.txt
#RUN git clone https://github.com/Gourieff/ComfyUI-ReActor.git ComfyUI-ReActor/;pip install -r ComfyUI-ReActor/requirements.txt
#RUN git clone https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite.git ComfyUI-VideoHelperSuite/;pip install -r ComfyUI-VideoHelperSuite/requirements.txt
EXPOSE 8188
CMD ["python3","/ComfyUI/main.py","--listen","0.0.0.0"]
构建运行
# 定义最新tag变量
LATEST_TAG=$(git tag --sort=-creatordate | head -n 1)
# 构建镜像
docker build --build-arg LATEST_TAG=$LATEST_TAG -t registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 .
# 推送至阿里云仓库
docker push registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129
# 标记为第二个仓库标签
docker tag registry.cn-hangzhou.aliyuncs.com/dockerdance/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129 duhongming/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129
# 推送至第二个仓库
docker push duhongming/comfyui:$LATEST_TAG-3.13.7-bookworm-cu129
Content type
Image
Digest
sha256:8edf3d67a…
Size
7 GB
Last updated
9 months ago
docker pull duhongming/comfyui