# CI override - removes GPU requirements for GitHub Actions
# Use with: docker compose -f docker-compose.yml -f docker-compose.ci.yml
services:
comfyui:
# Clear the entire reservations block to remove GPU requests
deploy:
resources:
reservations: {} # This clears the nested 'devices' block completely
limits:
cpus: '2'
memory: 4G
# Belt-and-suspenders: ensure no device requests
device_requests: []
# Force CPU mode
environment:
- NVIDIA_VISIBLE_DEVICES=void
- CUDA_VISIBLE_DEVICES=-1
# Override command to use CPU
command: ["--listen", "0.0.0.0", "--port", "8188", "--cpu", "--disable-metadata"]