Compare commits
2 Commits
94e5a71e55
...
2236b83722
Author | SHA1 | Date | |
---|---|---|---|
2236b83722 | |||
71dd70ff12 |
40
Dockerfile
Normal file
40
Dockerfile
Normal 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"]
|
@ -1,3 +1,6 @@
|
||||
# ComfyUI-docker
|
||||
|
||||
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
43
docker-compose.yml
Normal 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
|
||||
|
0
models/checkpoints/put_checkpoints_here
Normal file
0
models/checkpoints/put_checkpoints_here
Normal file
0
models/clip/put_clip_or_text_encoder_models_here
Normal file
0
models/clip/put_clip_or_text_encoder_models_here
Normal file
0
models/clip_vision/put_clip_vision_models_here
Normal file
0
models/clip_vision/put_clip_vision_models_here
Normal file
0
models/controlnet/put_controlnets_and_t2i_here
Normal file
0
models/controlnet/put_controlnets_and_t2i_here
Normal file
0
models/diffusers/put_diffusers_models_here
Normal file
0
models/diffusers/put_diffusers_models_here
Normal file
0
models/gligen/put_gligen_models_here
Normal file
0
models/gligen/put_gligen_models_here
Normal file
0
models/hypernetworks/put_hypernetworks_here
Normal file
0
models/hypernetworks/put_hypernetworks_here
Normal file
0
models/loras/put_loras_here
Normal file
0
models/loras/put_loras_here
Normal file
0
models/photomaker/put_photomaker_models_here
Normal file
0
models/photomaker/put_photomaker_models_here
Normal file
0
models/style_models/put_t2i_style_model_here
Normal file
0
models/style_models/put_t2i_style_model_here
Normal file
0
models/unet/put_unet_files_here
Normal file
0
models/unet/put_unet_files_here
Normal file
0
models/vae/put_vae_here
Normal file
0
models/vae/put_vae_here
Normal file
Loading…
Reference in New Issue
Block a user