-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdocker-compose.yml
38 lines (34 loc) · 894 Bytes
/
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
version: '3'
services:
messaging:
network_mode: "host"
image: "eclipse-mosquitto"
dashboard:
build:
context: ./
dockerfile: "Dockerfile.node-red"
network_mode: "host"
environment:
- FLOWS=/usr/src/node-red/myflows/flows_person_count.json
volumes:
- "${PWD}/flows:/usr/src/node-red/myflows"
depends_on:
- "messaging"
inference:
build:
context: ./
args:
- BASE_IMAGE=${BASE_IMAGE}
image: tiny_yolov2_onnx_cam:l4t-r${L4T_VERSION}
network_mode: "host"
runtime: "nvidia"
environment:
- DISPLAY=${DISPLAY}
devices:
- "/dev/video0:/dev/video0"
volumes:
- "/tmp/argus_socket:/tmp/argus_socket"
- "/tmp/.X11-unix/:/tmp/.X11-unix"
depends_on:
- "dashboard"
command: python3 tiny_yolov2_onnx_cam_mqtt.py --topic tiny_yolov2_onnx_cam --novout