-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
62 lines (57 loc) · 1.45 KB
/
docker-compose.yaml
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
52
53
54
55
56
57
58
59
60
61
62
version: '3.4'
services:
record:
build:
context: .
target: prod
image: sjawhar/no-wander:record
environment:
DISPLAY:
XAUTHORITY: /tmp/.docker.xauth
volumes:
- ./data:/home/muselsl/data
- /tmp/.docker.xauth:/tmp/.docker.xauth
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.config/muselsl/bluetooth:/etc/bluetooth
- ~/.config/muselsl/dbus:/etc/dbus-1
- ~/.config/muselsl/devices:/var/lib/bluetooth
network_mode: host
privileged: true
entrypoint: [python3, -m, no_wander, record]
process:
build:
context: .
target: prod
image: sjawhar/no-wander:record
volumes:
- ./no_wander:/opt/no_wander/no_wander
- ./data:/home/muselsl/data
entrypoint: [python3, -m, no_wander, process]
train:
build:
context: .
dockerfile: train.Dockerfile
image: sjawhar/no-wander:train
volumes:
- ./no_wander:/opt/no_wander/no_wander
- ./data:/home/tf/data
- ./models:/home/tf/models
entrypoint: [python3, -m, no_wander, train]
notebook:
build:
context: .
dockerfile: train.Dockerfile
image: sjawhar/no-wander:train
volumes:
- ./no_wander:/opt/no_wander/no_wander
- ./data:/home/tf/data
- ./models:/home/tf/models
- ./notebooks:/home/tf/notebooks
ports:
- 8888:8888
command:
- jupyter
- lab
- --LabApp.token=''
- --ip=0.0.0.0
- --no-browser