-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
24 lines (24 loc) · 660 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
24 lines (24 loc) · 660 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
version: "3.9"
services:
dev:
# Will build ./docker/Dockerfile
# This Dockerfile is for GPU based development
ipc: host
build:
context: .
dockerfile: ./docker/Dockerfile
volumes:
- ./:/app
- /home/ubuntu/.cache:/root/.cache
- /home/ubuntu/.torch:/root/.torch
- /home/ubuntu/.config:/root/.config
- /home/ubuntu/.bash_history:/root/.bash_history
- /home/ubuntu/.netrc:/root/.netrc
- /home/ubuntu/Datasets:/root/Datasets
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ['0']
capabilities: [gpu]