mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-16 01:37:04 +08:00
- Fix venv creation check to look for bin/activate instead of directory - Add INSTALL_NANO_BANANA env var to entrypoint for automatic installation - Add COMFYUI_ARGS support to pass arguments to ComfyUI (e.g., --cpu) - Configure CPU mode for testing without GPU - Update comfy-node-install to disable git terminal prompts Note: Nano Banana repository URL needs verification (current URL returns 404)
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
services:
|
|
comfyui:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: comfyui
|
|
ports:
|
|
- "8189:8188"
|
|
# Temporarily disabled for testing without GPU
|
|
# deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: all
|
|
# capabilities: [gpu]
|
|
# ipc: host
|
|
env_file:
|
|
- .env
|
|
volumes:
|
|
- .:/app/ComfyUI # Mount local repo (for git checkout updates)
|
|
- comfyui-models:/app/ComfyUI/models # Persist models
|
|
- comfyui-output:/app/ComfyUI/output # Persist outputs
|
|
- comfyui-input:/app/ComfyUI/input # Persist inputs
|
|
- comfyui-custom-nodes:/app/ComfyUI/custom_nodes # Persist custom nodes
|
|
- comfyui-user:/app/ComfyUI/user # Persist user settings/workflows
|
|
- comfyui-venv:/app/venv # Cache virtualenv
|
|
environment:
|
|
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
|
|
- TZ=America/Chicago
|
|
- PUID=1000
|
|
- PGID=1000
|
|
- COMFYUI_ARGS=--cpu
|
|
- INSTALL_NANO_BANANA=true
|
|
# OpenTelemetry environment variables (optional - set if you want OTEL)
|
|
# - OTEL_EXPORTER_OTLP_ENDPOINT=http://your-otel-collector:4317
|
|
# - OTEL_SERVICE_NAME=comfyui
|
|
# - OTEL_RESOURCE_ATTRIBUTES=service.name=comfyui
|
|
restart: unless-stopped
|
|
|
|
volumes:
|
|
comfyui-models:
|
|
comfyui-output:
|
|
comfyui-input:
|
|
comfyui-custom-nodes:
|
|
comfyui-user:
|
|
comfyui-venv:
|
|
|