mirror of
https://github.com/harry0703/MoneyPrinterTurbo.git
synced 2026-11-14 18:22:59 +01:00
- 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>
28 lines
711 B
YAML
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]
|