first add
This commit is contained in:
32
docker-compose-zj.yml
Normal file
32
docker-compose-zj.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
ubuntu-zj:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile.zj
|
||||
volumes:
|
||||
- /data1/liujiang/workspace/sophone:/data1/liujiang/workspace/sophone
|
||||
container_name: ubuntu-zj
|
||||
pull_policy: if_not_present
|
||||
tty: true
|
||||
restart: unless-stopped
|
||||
image: zj/tpuc_dev:latest
|
||||
ports:
|
||||
- 3393:22
|
||||
environment:
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
|
||||
networks:
|
||||
- network5
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: all
|
||||
capabilities: [gpu]
|
||||
|
||||
networks:
|
||||
network5:
|
||||
name: network5
|
||||
Reference in New Issue
Block a user