services: comfyui: build: context: . dockerfile: Containerfile container_name: comfyui devices: - /dev/kfd - /dev/dri group_add: - video - render ipc: host network_mode: host restart: unless-stopped environment: HSA_OVERRIDE_GFX_VERSION: 11.5.1 HSA_ENABLE_SDMA: 0 ROCBLAS_USE_HIPBLASLT: 1 PYTORCH_HIP_ALLOC_CONF: expandable_segments:False HIP_LAUNCH_BLOCKING: 1 volumes: - ./models:/workspace/ComfyUI/models - ./output:/workspace/ComfyUI/output