-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.cuda.local.yaml
59 lines (53 loc) · 1.2 KB
/
compose.cuda.local.yaml
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
include:
- base.yaml
services:
webcam_capture_app:
build:
context: .
dockerfile: ./webcam_capture/Dockerfile
ports:
- "8000:8000"
environment:
APP_ENVIRONMENT: "production"
WC_CAMERA__STREAM_FPS: 60
WC_CAMERA__PREDICTION_FPS: 60
devices:
- /dev/video0:/dev/video0
depends_on:
yolo_prediction_service:
condition: service_healthy
networks:
- yolo_tonic_network
yolo_prediction_service:
build:
context: .
dockerfile: ./yolo_prediction/cuda.Dockerfile
ports:
- "50051:50051"
environment:
APP_ENVIRONMENT: "production"
YP_MODEL__ONNX_FILE: "yolov8m.onnx"
YP_MODEL__NUM_INSTANCES: 8
YP_MODEL__MODEL_DIR: "/app/models"
YP_MODEL__MIN_PROBABILITY: 0.55
runtime: nvidia
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
- yolo_tonic_network
prometheus:
extends:
file: base.yaml
service: prometheus
grafana:
extends:
file: base.yaml
service: grafana
networks:
yolo_tonic_network:
name: yolo_tonic_network