-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
44 lines (43 loc) · 1.05 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
version: "2.4"
services:
jupyter:
image: jupyter/base-notebook
build:
context: .
dockerfile: Dockerfile
ports:
- "${JUPYTER_PORT}:${JUPYTER_PORT}"
command: poetry run jupyter lab --ip=0.0.0.0 --port=${JUPYTER_PORT} --allow-root
volumes:
- "./:/app/:cached"
deploy:
resources:
# consider updating these limits
limits:
cpus: "4"
memory: 8GB
jupyter-gpu:
image: jupyter/base-notebook
build:
context: .
dockerfile: Dockerfile.gpu
args:
GPU_RUNTIME: nvidia
shm_size: "8gb"
ports:
- "${JUPYTER_PORT_GPU}:${JUPYTER_PORT_GPU}"
command: poetry run jupyter lab --ip=0.0.0.0 --port=${JUPYTER_PORT_GPU} --allow-root
volumes:
- "./:/app/:cached"
deploy:
resources:
# consider updating these limits
limits:
cpus: "32"
memory: 500GB
reservations:
devices:
- driver: "nvidia"
capabilities: [gpu]
environment:
CUDA_DEVICE_ORDER: PCI_BUS_ID