# ComfyUI Docker Compose File v1.0.1 by John Aldred # http://www.johnaldred.com # http://github.com/kaouthia services: comfyui: build: dockerfile: Dockerfile image: comfyui-v3:latest container_name: comfyui ports: # ComfyUI web interface - "8188:8188" volumes: # Persist models (checkpoints, LoRAs, VAEs, etc.) - /srv/comfyui/models:/app/ComfyUI/models # Persist generated images - /srv/comfyui/output:/app/ComfyUI/output # persist all your settings & extra nodes: - /srv/comfyui/settings:/app/ComfyUI/user/default # Persist custom nodes - /srv/comfyui/custom_nodes:/app/ComfyUI/custom_nodes # Persist workflow files - /srv/comfyui/workflows:/app/ComfyUI/user/default/workflows:rw user: "1000:1000" runtime: nvidia environment: - CLI_ARGS=--listen 0.0.0.0 - NVIDIA_VISIBLE_DEVICES=all stdin_open: true tty: true restart: unless-stopped