diff --git a/Dockerfile b/Dockerfile index dcac4e3..f0f93e8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential git \ && rm -rf /var/lib/apt/lists/* RUN git clone --depth 1 --branch ${COMFYUI_VERSION} \ - https://github.com/comfyanonymous/ComfyUI /app + https://github.com/Comfy-Org/ComfyUI /app WORKDIR /app RUN pip install --no-cache-dir -r requirements.txt EXPOSE 8188 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..3eeb573 --- /dev/null +++ b/LICENSE @@ -0,0 +1,12 @@ +Copyright (C) 2026 by Kris Lamoureux + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..99638c0 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# docker-comfyui + +Build and run ComfyUI in a container. This build targets NVIDIA by basing it +on the CUDA PyTorch runtime image. The only extra dependencies needed are +`git`, to clone the official ComfyUI repository, and `build-essential` for +`gcc`, which Triton requires. The image pulls a specific, pinned ComfyUI +version via the `COMFYUI_VERSION` build arg. The build merely shallow-clones +the repo and installs its requirements with `pip`. Kept intentionally simple. + +### Quick start + +1. Build + + ``` + docker compose build + ``` + +2. Run + + ``` + docker compose up -d + ``` diff --git a/docker-compose.yml b/docker-compose.yml index 359ccaf..7349113 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,13 +6,13 @@ services: restart: unless-stopped container_name: comfyui ports: - - "${ENDPOINT:?}:8188" + - "${ENDPOINT:-127.0.0.1:8188}:8188" volumes: - - ./data/models:/app/models - - ./data/input:/app/input - - ./data/output:/app/output - - ./data/user:/app/user - - ./data/custom_nodes:/app/custom_nodes - - ./data/triton-cache:/root/.triton + - ${DATA:-./data}/models:/app/models + - ${DATA:-./data}/input:/app/input + - ${DATA:-./data}/output:/app/output + - ${DATA:-./data}/user:/app/user + - ${DATA:-./data}/custom_nodes:/app/custom_nodes + - ${DATA:-./data}/triton-cache:/root/.triton devices: - nvidia.com/gpu=all