-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
43 lines (42 loc) · 974 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
version: "3.8"
services:
tensorboard:
image: tensorboard
build:
context: ./
dockerfile: tensorboard.Dockerfile
ports:
- ${TENSORBOARD_PORT}:${TENSORBOARD_PORT}
volumes:
- ${ROOT_DIR}:/jupyter
command:
[
"tensorboard",
"--logdir=${TENSORBOARD_DIR}",
"--port=${TENSORBOARD_PORT}",
"--bind_all"
]
deeplearning-server:
image: abhinand5/deeplearning-dev:latest
init: true
deploy:
resources:
reservations:
devices:
- capabilities: [ gpu ]
env_file: ./.env
ports:
- ${JUPYTER_PORT}:${JUPYTER_PORT}
volumes:
- ${ROOT_DIR}:/${WORKSPACE_DIR}
- ${ROOT_DIR}/notebooks:${JUPYTER_DIR}
command:
[
"jupyter",
"notebook",
"--ip=*",
"--port=${JUPYTER_PORT}",
"--allow-root",
"--notebook-dir=${JUPYTER_DIR}",
'--NotebookApp.token=${JUPYTER_TOKEN}'
]