-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
58 lines (53 loc) · 1.59 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
46
47
48
49
50
51
52
53
54
55
56
57
58
version: '3.8'
services:
model2queue-core:
image: ${CORE_IMAGE}
container_name: model2queue-core
build:
context: .
dockerfile: ./build/core/Dockerfile
args:
- PYTHON_VERSION=${PYTHON_VERSION}
- PIP_VERSION=${PIP_VERSION}
model2queue-jupyter:
image: ${JUPYTER_IMAGE}
container_name: model2queue-jupyter
build:
context: .
dockerfile: ./build/jupyter/Dockerfile
args:
- CORE_IMAGE=${CORE_IMAGE}
model2queue-jupyter-gpu:
network_mode: host
image: ${JUPYTER_IMAGE}
container_name: model2queue-jupyter-gpu
deploy:
resources:
reservations:
devices:
- capabilities: [ gpu ]
shm_size: '8gb'
volumes:
- $PWD/${SRC_VOLUME_MOUNT}
- $PWD/${NOTEBOOKS_VOLUME_MOUNT}
- $PWD/${RESOURCES_VOLUME_MOUNT}
env_file:
- .env
model2queue-jupyter-cpu:
network_mode: host
image: ${JUPYTER_IMAGE}
container_name: model2queue-jupyter-cpu
shm_size: '8gb'
volumes:
- $PWD/${SRC_VOLUME_MOUNT}
- $PWD/${NOTEBOOKS_VOLUME_MOUNT}
- $PWD/${RESOURCES_VOLUME_MOUNT}
env_file:
- .env
model2queue-vastai:
image: ${VASTAI_IMAGE}
build:
context: .
dockerfile: ./build/vastai/Dockerfile
args:
- JUPYTER_IMAGE=${JUPYTER_IMAGE}