Customizable ComfyUI docker image with automatic environment setup
10K+
A Customizable ComfyUI docker image with automatic environment setup.
⚠️ Note: This image is designed for personal use with GUI access, not for production server deployments.
nunchaku, sageattention2++,sageattn3, xformers, transformers, onnxruntime, opencv-python, etc.
.py, .sh, .bat, .ps1)| Image Tag | Compute Platform | PyTorch Version | Python Version | ComfyUI Version | Note |
|---|---|---|---|---|---|
latest / vX.Y.Z | Recommend | ||||
nightly |
| Variable | Description | Default |
|---|---|---|
| INIT_NODE | Enable automatic installs/removes of custom nodes at startup | true |
| UPDATE_NODE | Enable automatic updates of custom nodes at startup | false |
| INIT_MODEL | Enable automatic downloads/removes of models at startup | true |
| BOOT_CONFIG_INCLUDE | Regex pattern for including boot config files. | |
| BOOT_CONFIG_EXCLUDE | Regex pattern for excluding boot config files. | |
| COMFYUI_EXTRA_ARGS | Additional ComfyUI launch arguments. | |
| HF_API_TOKEN | Hugging Face access token for downloading access restricted models. | |
| CIVITAI_API_TOKEN | Civitai API token for downloading access restricted models. | |
| CN_NETWORK | Enable network optimization for Chinese Mainland users. Changes default HF/Civitai endpoints. | false |
| HF_ENDPOINT | Override the Hugging Face download endpoint. | https://huggingface.co (or https://hf-mirror.com if CN_NETWORK=true) |
| CIVITAI_ENDPOINT | Override the Civitai download endpoint. | https://civitai.com (or https://civitai.work if CN_NETWORK=true) |
Clone this repository, mount docker/ as working directory:
git clone https://github.com/jimlee2048/comfyui-docker
cd comfyui-docker/docker
Create and configure docker/.env file base on example:
cp example.env .env
see docker/example.env for more details.
(Optional) Set up automatic node/model management:
INIT_NODE=true or/and INIT_MODEL=true in docker/.envdocker/config/
see docker/config/example.toml for more details.Create and configure docker/compose.yml file base on example:
cp compose.example.yml compose.yml
see docker/compose.example.yml for more details.
Launch ComfyUI:
docker compose up
docker compose up -d
First run may take longer due to node installation and model downloads.
Access ComfyUI at http://localhost:8188
To stop:
docker compose down
When modifying boot config or environment variables, do not use ComfyUI Manager's restart function on the web interface.
Instead, restart the container to apply changes:
docker compose down
docker compose up -d
Option 1: Use ComfyUI Manager in the web interface
Option 2: Pull latest image:
docker compose pull
docker compose down
docker compose up -d
Content type
Image
Digest
sha256:5775690fe…
Size
8.7 GB
Last updated
3 days ago
docker pull jimlee2048/comfyui-docker