Add comfyui

This commit is contained in:
whitney 2025-01-27 20:31:46 -08:00
parent 017235a20a
commit 7b43cbb150
2 changed files with 42 additions and 0 deletions

13
comfyui/README.md Normal file
View File

@ -0,0 +1,13 @@
# ComfyUI
ComfyUI is the frontend package allowing you to mess around with Stable Diffusion models.
State of the art models include Flux.1 Dev, Flux.1 Schnell, and later versions of Stable Diffusion.
## Installation
```
docker compose down && docker system prune -af && docker compose up -d && docker logs -f comfyui
```
## GPU Requirements
Have a strong enough GPU to run these models. I've ran Flux.1 Dev on a 3070 with 24GB of VRAM.
Other than that consult charts for what you can run on your system.

View File

@ -0,0 +1,29 @@
networks:
traefik:
external: true
services:
comfyui:
image: ghcr.io/lecode-official/comfyui-docker:latest
container_name: comfyui
restart: unless-stopped
networks:
- traefik
environment:
- USER_ID=1006
- GROUP_ID=1008
volumes:
- /pwspool/software/comfyui/models:/opt/comfyui/models:rw
- /pwspool/software/comfyui/nodes:/opt/comfyui/custom_nodes:rw
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: ["gpu"]
labels:
- traefik.http.routers.comfyui.rule=Host(`comfyui.whitney.rip`)
- traefik.http.routers.comfyui.tls=true
- traefik.http.routers.comfyui.tls.certresolver=lets-encrypt
- traefik.http.services.comfyui.loadbalancer.server.port=8188