mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-16 09:42:29 +08:00
46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
services:
|
|
comfyui:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
container_name: comfyui
|
|
ports:
|
|
- "8188:8188"
|
|
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
|
|
# 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:
|
|
|