Files
MoneyPrinterTurbo/docker-compose.gpu.yml
T
SUMDDOSandClaude Opus 4.6 39d5894992 feat: add GPU support via Dockerfile.gpu and docker-compose.gpu.yml
- Restore original Dockerfile and docker-compose.yml (no breaking changes)
- Add Dockerfile.gpu with NVIDIA CUDA 12.1 base image
- Add docker-compose.gpu.yml as compose override for GPU deployment
- Update GPU deployment documentation with both CPU and GPU instructions

CPU users: docker compose up -d (unchanged)
GPU users: docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-01 03:20:31 +08:00

28 lines
711 B
YAML

# GPU override file
# Usage: docker compose -f docker-compose.yml -f docker-compose.gpu.yml up -d
#
# Prerequisites:
# 1. NVIDIA GPU driver installed on host
# 2. NVIDIA Container Toolkit installed
# 3. Verify with: docker info | grep nvidia
#
# This file overrides the default docker-compose.yml to:
# - Build with Dockerfile.gpu (NVIDIA CUDA base image)
# - Attach GPU device to the api service
services:
webui:
build:
context: .
dockerfile: Dockerfile.gpu
api:
build:
context: .
dockerfile: Dockerfile.gpu
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]