27 lines
588 B
YAML
27 lines
588 B
YAML
|
|
version: '3.8'
|
||
|
|
|
||
|
|
services:
|
||
|
|
bevfusion_ssh:
|
||
|
|
image: localhost/bevfusion:ssh
|
||
|
|
container_name: bevfusion_ssh
|
||
|
|
privileged: true
|
||
|
|
ports:
|
||
|
|
- "12266:22"
|
||
|
|
volumes:
|
||
|
|
- ./docker/start-ssh.sh:/start-ssh.sh:ro
|
||
|
|
# 挂载宿主机目录到容器
|
||
|
|
- /workspace:/workspace
|
||
|
|
- /data:/data
|
||
|
|
command: /bin/bash /start-ssh.sh
|
||
|
|
restart: unless-stopped
|
||
|
|
environment:
|
||
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
||
|
|
deploy:
|
||
|
|
resources:
|
||
|
|
reservations:
|
||
|
|
devices:
|
||
|
|
- driver: nvidia
|
||
|
|
count: all
|
||
|
|
capabilities: [gpu]
|
||
|
|
|