Compare commits

..

2 Commits

Author SHA1 Message Date
owl
2236b83722 upload2 2024-10-13 06:28:25 +07:00
owl
71dd70ff12 upload 2024-10-13 06:27:14 +07:00
19 changed files with 87 additions and 1 deletions

40
Dockerfile Normal file
View File

@ -0,0 +1,40 @@
FROM nvidia/cuda:12.6.1-cudnn-runtime-ubuntu20.04
RUN apt-get update && apt-get install -y \
git \
python3 \
python3-pip \
build-essential \
&& rm -rf /var/lib/apt/lists/*
RUN git clone https://github.com/comfyanonymous/ComfyUI.git /ComfyUI
WORKDIR /ComfyUI
VOLUME [ \
"/ComfyUI/models/diffusion_models", \
"/ComfyUI/models/controlnet", \
"/ComfyUI/models/upscale_models", \
"/ComfyUI/models/photomaker", \
"/ComfyUI/models/embeddings", \
"/ComfyUI/models/checkpoints", \
"/ComfyUI/models/style_models", \
"/ComfyUI/models/clip", \
"/ComfyUI/models/hypernetworks", \
"/ComfyUI/models/diffusers", \
"/ComfyUI/models/vae", \
"/ComfyUI/models/gligen", \
"/ComfyUI/models/unet", \
"/ComfyUI/models/clip_vision", \
"/ComfyUI/models/vae_approx", \
"/ComfyUI/models/loras" \
]
RUN pip3 install --upgrade pip \
&& pip3 install -r requirements.txt
ENV PATH /usr/local/cuda/bin:${PATH}
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:${LD_LIBRARY_PATH}
CMD ["python3", "/ComfyUI/main.py", "--listen"]

View File

@ -1,3 +1,6 @@
# ComfyUI-docker
Dockerfile for ComfyUI
Dockerfile for ComfyUI
No automatic downloads of terabytes of models, no manager, no custom nodes, no nothing. It's just comfy.
Only works on nvidia (container uses cuda 12.6.1), for the sake of simplicity and because i have no other gpus.

43
docker-compose.yml Normal file
View File

@ -0,0 +1,43 @@
services:
comfy:
image: comfy_simple
build:
context: .
ports:
- "8188:8188"
volumes:
- ./models/diffusion_models:/ComfyUI/models/diffusion_models
- ./models/controlnet:/ComfyUI/models/controlnet
- ./models/upscale_models:/ComfyUI/models/upscale_models
- ./models/photomaker:/ComfyUI/models/photomaker
- ./models/embeddings:/ComfyUI/models/embeddings
- ./models/checkpoints:/ComfyUI/models/checkpoints
- ./models/style_models:/ComfyUI/models/style_models
- ./models/clip:/ComfyUI/models/clip
- ./models/hypernetworks:/ComfyUI/models/hypernetworks
- ./models/diffusers:/ComfyUI/models/diffusers
- ./models/vae:/ComfyUI/models/vae
- ./models/gligen:/ComfyUI/models/gligen
- ./models/unet:/ComfyUI/models/unet
- ./models/clip_vision:/ComfyUI/models/clip_vision
- ./models/vae_approx:/ComfyUI/models/vae_approx
- ./models/loras:/ComfyUI/models/loras
- ./output:/ComfyUI/output
- ./input:/ComfyUI/input
environment:
- NVIDIA_VISIBLE_DEVICES=all
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]
command: ["python3", "/ComfyUI/main.py", "--listen"]
volumes:
app:
driver: local

View File

View File

View File

View File

0
models/vae/put_vae_here Normal file
View File