-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-gpu-server-amalia.yml
63 lines (57 loc) · 1.4 KB
/
docker-gpu-server-amalia.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
version: '3'
services:
backend:
ipc: host
container_name: 'traffic-backend'
build: ./backend
restart: always
ports:
- 8000:8000
environment:
- BACKEND_HOST=${BACKEND_HOST}
- RPC_HOST_LIST=detector_1,detector_2
links:
- detector_1
- detector_2
volumes:
- $PWD/storage/video-in:/mnt/video-in
- $PWD/storage/video-out:/mnt/video-out
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
detector_1:
ipc: host
container_name: 'traffic-detector-1'
build:
context: ./video-detector
restart: always
shm_size: '32gb'
volumes:
- $PWD/storage/video-in:/app/video-detector/videos
- $PWD/storage/video-out:/app/video-detector/output
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
detector_2:
ipc: host
container_name: 'traffic-detector-2'
build:
context: ./video-detector
restart: always
shm_size: '32gb'
volumes:
- $PWD/storage/video-in:/app/video-detector/videos
- $PWD/storage/video-out:/app/video-detector/output
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]