Document the project and parameterize defaults
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
build-essential git \
|
build-essential git \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
RUN git clone --depth 1 --branch ${COMFYUI_VERSION} \
|
RUN git clone --depth 1 --branch ${COMFYUI_VERSION} \
|
||||||
https://github.com/comfyanonymous/ComfyUI /app
|
https://github.com/Comfy-Org/ComfyUI /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
EXPOSE 8188
|
EXPOSE 8188
|
||||||
|
|||||||
@@ -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.
|
||||||
@@ -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
@@ -6,13 +6,13 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: comfyui
|
container_name: comfyui
|
||||||
ports:
|
ports:
|
||||||
- "${ENDPOINT:?}:8188"
|
- "${ENDPOINT:-127.0.0.1:8188}:8188"
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/models:/app/models
|
- ${DATA:-./data}/models:/app/models
|
||||||
- ./data/input:/app/input
|
- ${DATA:-./data}/input:/app/input
|
||||||
- ./data/output:/app/output
|
- ${DATA:-./data}/output:/app/output
|
||||||
- ./data/user:/app/user
|
- ${DATA:-./data}/user:/app/user
|
||||||
- ./data/custom_nodes:/app/custom_nodes
|
- ${DATA:-./data}/custom_nodes:/app/custom_nodes
|
||||||
- ./data/triton-cache:/root/.triton
|
- ${DATA:-./data}/triton-cache:/root/.triton
|
||||||
devices:
|
devices:
|
||||||
- nvidia.com/gpu=all
|
- nvidia.com/gpu=all
|
||||||
|
|||||||
Reference in New Issue
Block a user