-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
44 lines (42 loc) · 1.09 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
services:
train:
build:
context: .
dockerfile: docker/Dockerfile.train
container_name: train
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./results/:/code/results/
- ./models/:/code/models/
- ./datasets/:/code/datasets/
command: 'python train.py --dataset fashion-mnist --model stnet --epochs 10'
runtime: nvidia
jupyter:
build:
context: .
dockerfile: docker/Dockerfile.jupyter
container_name: jupyter
user: root
ports:
- 8888:8888
environment:
- JUPYTER_ENABLE_LAB=yes
- JUPYTER_TOKEN=docker
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./jupyter/:/home/jovyan/work/jupyter/
runtime: nvidia
train-birds:
build:
context: .
dockerfile: docker/Dockerfile.train_birds
container_name: train-birds
environment:
- NVIDIA_VISIBLE_DEVICES=all
volumes:
- ./results/:/code/results/
- ./models/:/code/models/
- ./datasets/:/code/datasets/
command: 'python train.py --dataset birds --model stresnext --epochs 20'
runtime: nvidia