From 7b43cbb1505be580bdff97083420e47068689f67 Mon Sep 17 00:00:00 2001 From: whitney Date: Mon, 27 Jan 2025 20:31:46 -0800 Subject: [PATCH] Add comfyui --- comfyui/README.md | 13 +++++++++++++ comfyui/docker-compose.yml | 29 +++++++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 comfyui/README.md create mode 100644 comfyui/docker-compose.yml diff --git a/comfyui/README.md b/comfyui/README.md new file mode 100644 index 0000000..60aae4a --- /dev/null +++ b/comfyui/README.md @@ -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. + diff --git a/comfyui/docker-compose.yml b/comfyui/docker-compose.yml new file mode 100644 index 0000000..c421b29 --- /dev/null +++ b/comfyui/docker-compose.yml @@ -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 +