forked from harry0703/MoneyPrinterTurbo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.gpu.yml
More file actions
35 lines (35 loc) · 952 Bytes
/
Copy pathdocker-compose.gpu.yml
File metadata and controls
35 lines (35 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# 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 devices to both services because video generation can run in
# either the WebUI process or the API process
services:
webui:
build:
context: .
dockerfile: Dockerfile.gpu
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
api:
build:
context: .
dockerfile: Dockerfile.gpu
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]