-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.27 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.27 KB
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
version: '3.8'
services:
biomedical-cpu:
build:
context: .
args:
BASE_IMAGE: pytorch/pytorch:2.0.1-cpu
container_name: biomedical-cpu
volumes:
- ./data:/app/data
- ./results:/app/results
- ./checkpoints:/app/checkpoints
environment:
- PYTHONPATH=/app
command: python scripts/train.py
biomedical-gpu:
build:
context: .
args:
BASE_IMAGE: pytorch/pytorch:2.0.1-cuda11.7-cudnn8-runtime
container_name: biomedical-gpu
volumes:
- ./data:/app/data
- ./results:/app/results
- ./checkpoints:/app/checkpoints
environment:
- PYTHONPATH=/app
- CUDA_VISIBLE_DEVICES=0
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
command: python scripts/train.py
jupyter:
build:
context: .
args:
BASE_IMAGE: pytorch/pytorch:2.0.1-cpu
container_name: biomedical-jupyter
ports:
- "8888:8888"
volumes:
- ./data:/app/data
- ./notebooks:/app/notebooks
- ./results:/app/results
environment:
- PYTHONPATH=/app
command: jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token=''