Files
FiDA-3D-Trellis/docker-compose.yaml

29 lines
915 B
YAML
Raw Normal View History

2026-03-17 11:29:17 +08:00
services:
trellis:
2026-03-17 11:42:36 +08:00
image: zhouchengrong/fida-trellis:latest # 你 commit 的镜像
2026-03-17 11:29:17 +08:00
container_name: trellis-dev
restart: unless-stopped
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility,video
volumes:
- .:/workspace # 当前目录挂载到 /workspace便于开发
ports:
2026-03-17 12:18:14 +08:00
- "14201:8120"
2026-03-17 11:29:17 +08:00
working_dir: /workspace
tty: true
stdin_open: true
# 最新GPU配置方式替代旧的环境变量声明更规范
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [ gpu, compute, video ]
2026-03-17 12:15:01 +08:00
device_ids: [ '1' ]
2026-03-17 11:29:17 +08:00
command: >
bash -c "
/opt/conda/envs/trellis/bin/python -c 'import torch; print(torch.__version__, torch.cuda.is_available())' &&
tail -f /dev/null
"