-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (40 loc) · 994 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (40 loc) · 994 Bytes
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
version: '2.3'
services:
transfer_train-container:
container_name: "train-container"
build:
context: .
dockerfile: Dockerfile_train
volumes:
- ./data:/home/prgrmcode/app/data
- model-volume:/home/prgrmcode/app/model
# command: ["python3", "transfer_learning_pytorch.py"]
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
transfer_app-container:
container_name: app-container
depends_on:
- transfer_train-container
build:
context: .
dockerfile: Dockerfile_app
volumes:
- ./data:/home/prgrmcode/app/data
- model-volume:/home/prgrmcode/app/model
# command: ["python3", "app_script.py"]
ports:
- "5000:5000"
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
volumes:
model-volume: