-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yaml
41 lines (40 loc) · 1.12 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
version: '2.3'
services:
jupyter:
image: ${PROJECT_NAME}
command: jupyter lab --ip=0.0.0.0 --no-browser --NotebookApp.token='${JUPYTER_PW}'
build:
context: .
dockerfile: Dockerfile
args:
- PKG_DIR=${PKG_DIR}
- PRIVATE_DEPS=${PRIVATE_DEPS}
shm_size: '16gb'
ports:
- ${JUPYTER_PORT}:8888
user: ${USER_ID}:${USER_ID}
runtime: ${RUNTIME}
network_mode: bridge
environment:
- NVIDIA_VISIBLE_DEVICES=${GPU_IDS}
volumes:
- ${DATA_DIR}:/workspace/data
- ${MODEL_DIR}:/workspace/models
- ${PROJECT_DIR}/src:/workspace/src
- ${PROJECT_DIR}/notebooks:/workspace/notebooks
- ${PROJECT_DIR}/logs:/workspace/logs
repl:
image: ${PROJECT_NAME}
tty: true
shm_size: '16gb'
user: ${USER_ID}:${USER_ID}
runtime: ${RUNTIME}
network_mode: bridge
environment:
- NVIDIA_VISIBLE_DEVICES=${GPU_IDS}
volumes:
- ${DATA_DIR}:/workspace/data
- ${MODEL_DIR}:/workspace/models
- ${PROJECT_DIR}/src:/workspace/src
- ${PROJECT_DIR}/scripts:/workspace/scripts
- ${PROJECT_DIR}/logs:/workspace/logs