aaa28809d13fbed6bb61c9718d9d24600e6de0bb
docker-comfyui
Build and run ComfyUI in a container with ComfyUI-Manager. This build targets
NVIDIA GPUs by using the CUDA PyTorch runtime image. Added dependencies are
libgl1 and libx11-6 for the comfy_extras GLSL nodes, tini to handle SIGINT
signals, git to clone the 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.
.env configuration
IMAGE- Image name
- Default:
localhost/comfyui
VERSION- Image tag
- Default:
latest
NAME- Container name
- Default:
comfyui
RESTART- Restart policy
- Default:
unless-stopped
ENDPOINT- Host bind
- Default:
127.0.0.1:8188
DATA- Host directory holding all persistent data
- Default:
./data
GPU- CDI device
- Default:
nvidia.com/gpu=all
Quick start
-
Build
docker compose build -
Run
docker compose up -d
Languages
Dockerfile
100%