forked from instituciones-abiertas/ia2-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (66 loc) · 1.96 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
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.10"
services:
ia2-core:
image: ${CORE_IMAGE}
container_name: ia2-core
build:
context: .
dockerfile: ./build/core/Dockerfile
args:
- PYTHON_VERSION=${PYTHON_VERSION}
- PIP_VERSION=${PIP_VERSION}
- CUDA_VERSION=${CUDA_VERSION}
- TORCH_VERSION=${TORCH_VERSION}
- TEST_MODEL_FILE=${TEST_MODEL_FILE}
volumes:
- $PWD/${DATASETS_VOLUME_MOUNT}
- $PWD/${RESOURCES_VOLUME_MOUNT}
env_file:
- .env
ia2-jupyter:
image: ${JUPYTER_IMAGE}
container_name: ia2-jupyter
build:
context: .
dockerfile: ./build/jupyter/Dockerfile
args:
- CORE_IMAGE=${CORE_IMAGE}
ia2-jupyter-gpu:
network_mode: host
image: ${JUPYTER_IMAGE}
container_name: ia2-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
ia2-jupyter-cpu:
network_mode: host
image: ${JUPYTER_IMAGE}
container_name: ia2-jupyter-cpu
shm_size: '8gb'
volumes:
- $PWD/${SRC_VOLUME_MOUNT}
- $PWD/${NOTEBOOKS_VOLUME_MOUNT}
- $PWD/${RESOURCES_VOLUME_MOUNT}
env_file:
- .env
ia2-core-test-cpu:
network_mode: host
image: ${CORE_IMAGE}
command: sh -c " cd .. && ${TEST_COMMAND}"
container_name: ia2-core-test-cpu
shm_size: '8gb'
volumes:
- $PWD/${TEST_VOLUME_MOUNT}
- $PWD/${SRC_VOLUME_MOUNT}
- $PWD/${RESOURCES_VOLUME_MOUNT}
env_file:
- .env