Base compose is GPU-agnostic; GPU is added by a per-OS override selected via COMPOSE_FILE in .env (docker-compose.gpu-linux.yml for Ubuntu/CDI, docker-compose.gpu-windows.yml for Windows 11 Docker Desktop). Adds .env.example split-deployment section + docs/DEPLOY.md covering all-in-one and browser+bot layouts on both OSes.
27 lines
847 B
YAML
27 lines
847 B
YAML
# 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 (recommended):
|
|
# 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]
|