{"id":50907331,"url":"https://github.com/wachawo/comfyui-docker-compose","last_synced_at":"2026-06-16T06:30:58.360Z","repository":{"id":353692167,"uuid":"1220370498","full_name":"wachawo/comfyui-docker-compose","owner":"wachawo","description":"Docker Compose setup for running ComfyUI with NVIDIA GPU","archived":false,"fork":false,"pushed_at":"2026-04-25T02:30:06.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-25T04:23:02.756Z","etag":null,"topics":["comfyui","docker-compose"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wachawo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-24T20:38:56.000Z","updated_at":"2026-04-25T02:30:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/wachawo/comfyui-docker-compose","commit_stats":null,"previous_names":["wachawo/comfyui-docker-compose"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/wachawo/comfyui-docker-compose","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachawo%2Fcomfyui-docker-compose","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachawo%2Fcomfyui-docker-compose/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachawo%2Fcomfyui-docker-compose/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachawo%2Fcomfyui-docker-compose/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wachawo","download_url":"https://codeload.github.com/wachawo/comfyui-docker-compose/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wachawo%2Fcomfyui-docker-compose/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34393304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comfyui","docker-compose"],"created_at":"2026-06-16T06:30:57.721Z","updated_at":"2026-06-16T06:30:58.354Z","avatar_url":"https://github.com/wachawo.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ComfyUI (Docker + NVIDIA GPU)\n\nDockerized [ComfyUI](https://github.com/comfyanonymous/ComfyUI) based on `nvidia/cuda:13.0.3-cudnn-runtime-ubuntu24.04` with PyTorch cu130.\n\n## Requirements\n\n- Linux with NVIDIA driver (check with `nvidia-smi`)\n- Docker + Docker Compose\n- [nvidia-container-toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html) for GPU passthrough\n\n### Install NVIDIA Container Toolkit (Ubuntu/Debian)\n\nWithout this package `docker compose up` fails with:\n`Error response from daemon: could not select device driver \"nvidia\" with capabilities: [[gpu]]`.\n\n```bash\ncurl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey \\\n  | sudo gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg\ncurl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list \\\n  | sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' \\\n  | sudo tee /etc/apt/sources.list.d/nvidia-container-toolkit.list\n\nsudo apt-get update\nsudo apt-get install -y nvidia-container-toolkit\nsudo nvidia-ctk runtime configure --runtime=docker\nsudo systemctl restart docker\n```\n\nVerify:\n\n```bash\ndocker run --rm --gpus all nvidia/cuda:12.4.0-base-ubuntu22.04 nvidia-smi\n```\n\n## Run\n\n```bash\ncp .env.example .env   # if present; otherwise use your existing .env\ndocker compose up -d --build\n```\n\nTwo build targets are shipped:\n\n| Dockerfile         | Base                                      | PyTorch | Host driver reports |\n|--------------------|-------------------------------------------|---------|---------------------|\n| `Dockerfile`       | `nvidia/cuda:13.0.3-…-ubuntu24.04` *(default)* | cu130   | CUDA ≥ 13.0         |\n| `Dockerfile.cu124` | `nvidia/cuda:12.4.1-…-ubuntu22.04`        | cu124   | CUDA 12.4 – 12.9    |\n\nCheck your driver with `nvidia-smi` (top-right corner). Switch by setting in `.env`:\n\n```env\nDOCKERFILE=Dockerfile.cu124\nCOMFYUI_IMAGE=comfyui_gpu_cu124\n```\n\nThen rebuild: `docker compose build --no-cache \u0026\u0026 docker compose up -d`.\n\nThe UI is available at `http://localhost:8188`.\n\nLogs:\n\n```bash\ndocker compose logs -f comfyui\n```\n\nStop:\n\n```bash\ndocker compose down\n```\n\n## Configuration\n\nVariables in `.env`:\n\n| Variable            | Default          | Description                                           |\n|---------------------|------------------|-------------------------------------------------------|\n| `TZ`                | `America/New_York` | Container timezone                                  |\n| `COMFYUI_HOST`      | `0.0.0.0`        | Listen address                                        |\n| `COMFYUI_PORT`      | `8188`           | ComfyUI port                                          |\n| `COMFYUI_EXTRA_ARGS`| `\"\"`             | Extra `main.py` flags (`--lowvram`, `--novram`, `--cpu`) |\n| `CIVITAI_TOKEN`     | `\"\"`             | [Civitai API key](https://civitai.com/user/account) for model downloads |\n| `HF_TOKEN`          | `\"\"`             | [HuggingFace token](https://huggingface.co/settings/tokens); also exported as `HUGGING_FACE_HUB_TOKEN` |\n| `HF_HUB_OFFLINE`    | `0`              | `1` disables HF network (use only cached models)      |\n| `HUGGINGFACE_HUB_CACHE` | `/opt/ComfyUI/cache` | HF cache dir inside container (mounted from `./cache`) |\n\n## Volumes\n\nHost directories are mounted into the container (created automatically):\n\n| Host            | Container                   | Purpose                       |\n|-----------------|-----------------------------|-------------------------------|\n| `./models`      | `/opt/ComfyUI/models`       | Checkpoints, LoRA, VAE, etc.  |\n| `./custom_nodes`| `/opt/ComfyUI/custom_nodes` | Custom nodes                   |\n| `./input`       | `/opt/ComfyUI/input`        | Input images                   |\n| `./output`      | `/opt/ComfyUI/output`       | Generation outputs             |\n| `./user`        | `/opt/ComfyUI/user`         | User workflows                 |\n| `./logs`        | `/opt/ComfyUI/logs`         | Logs                           |\n\n## Install Without Docker\n\nSee [INSTALL.md](INSTALL.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwachawo%2Fcomfyui-docker-compose","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwachawo%2Fcomfyui-docker-compose","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwachawo%2Fcomfyui-docker-compose/lists"}