-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
51 lines (47 loc) · 1014 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: '2'
volumes:
nvidia:
external:
name: nvidia_driver_367.57
shared:
services:
tf-cpu:
build:
context: ./docker
dockerfile: cpu.dockerfile
volumes:
- ./notebooks:/notebooks
- ./data:/data
- ./models/:/models
- ./:/code
- shared:/logs
- ../tensorbuilder:/tensorbuilder
ports:
- "8885:8888"
tf-gpu:
build:
context: ./docker
dockerfile: gpu.dockerfile
image: tf-gpu
volumes:
- ./notebooks:/notebooks
- ./data:/data
- ./models/:/models
- ./:/code
- shared:/logs
- nvidia:/usr/local/nvidia:ro
devices:
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
- /dev/nvidia-uvm:/dev/nvidia-uvm
ports:
- "8886:8888"
tensorboard:
build:
context: ./docker
dockerfile: cpu.dockerfile
volumes:
- shared:/logs
ports:
- "6006:6006"
command: bash -c "rm -fr /logs/* && tensorboard --logdir=/logs"