# GPU override for WINDOWS 11 (Docker Desktop + WSL2 + NVIDIA) and any host # that exposes the GPU through Docker's portable device-reservation API rather # than CDI. Requires the NVIDIA GPU driver on Windows and GPU support enabled in # Docker Desktop (Settings → Resources → WSL Integration / GPU). # # docker compose -f docker-compose.yml -f docker-compose.gpu-windows.yml up -d # # Or set COMPOSE_FILE in .env (note the ";" separator on Windows — ":" collides # with the C: drive letter and breaks file resolution): # COMPOSE_FILE=docker-compose.yml;docker-compose.gpu-windows.yml services: ollama: deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] javis: deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu]