Document the project and parameterize defaults

This commit is contained in:
2026-07-15 21:26:33 -04:00
parent 027d9287d4
commit e89a78066a
4 changed files with 42 additions and 8 deletions
+1 -1
View File
@@ -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
+12
View File
@@ -0,0 +1,12 @@
Copyright (C) 2026 by Kris Lamoureux <kris@lamoureux.io>
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.
+22
View File
@@ -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
```
+7 -7
View File
@@ -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