-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.27 KB
/
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
services:
notebook:
image: ecobost/dermosxai
ports:
- "7777:8888"
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for X-forwarding
- /tmp:/tmp
- .:/src/dermosxai
# - /media/ecobos/Mike/manifest-ZkhPvrLo5216730872708713142/CBIS-DDSM:/mammograms
# - /media/ecobos/Mike/manifest-1622561851074:/lung_cts
environment:
- DISPLAY=$DISPLAY
entrypoint:
- jupyter
- lab
- --ip=0.0.0.0
- --allow-root
- --ServerApp.token=''
- --no-browser
working_dir: /src/dermosxai
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
ipc: host # needed for multiprocessing (dataloader) in pytorch
bash:
image: ecobost/dermosxai
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for X-forwarding
- /tmp:/tmp
- .:/src/dermosxai
environment:
- DISPLAY=$DISPLAY
entrypoint: /bin/bash
working_dir: /src/dermosxai
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
ipc: host # needed for multiprocessing (dataloader) in pytorch
# user: "7610:1040" # uid:groupid, can't be automated because docker-compose can't run bash commands (so i can't do something like $(id -u):$(id -g)