Files
massive-cloud-export/docker-compose.gpu-v1.yml
2026-05-11 23:17:14 +08:00

16 lines
424 B
YAML
Executable File
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# GPU 叠加配置(旧版 docker-compose V1,使用 runtime: nvidia)
# 用法:docker-compose -f docker-compose.yml -f docker-compose.gpu-v1.yml up -d
#
# 前提:已注册 nvidia runtime
# sudo nvidia-ctk runtime configure --runtime=docker
# sudo systemctl restart docker
# 验证:docker info | grep -i nvidia
version: '3.8'
services:
app:
runtime: nvidia
environment:
- ASSEMBLY_USE_GPU=1