-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose-l4t-r35.1.0.yml
111 lines (111 loc) · 3.03 KB
/
docker-compose-l4t-r35.1.0.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
version: '2'
services:
redis:
image: shareai/redis:arm64v8_latest
restart: always
container_name: "redis"
command: sh -c "rm -rf /data/*.rdb && redis-server --maxmemory 40mb --maxmemory-policy allkeys-lru --save \"\" --appendonly no --dbfilename \"\""
#ports:
# - 6379:6379
logging:
driver: json-file
options:
max-size: "10m"
max-file: "10"
networks:
main:
aliases:
- redis
camera:
container_name: "camera"
command: sh -c "if [ ! -f /opt/nvr/conf/conf.sqlite ]; then cp /opt/nvr/sql/shinobi.sample.sqlite /opt/nvr/conf/conf.sqlite -a ; fi && sleep 3 && (node /opt/nvr/cron.js &) && node /opt/nvr/camera.js"
image: shareai/nvr:nano_r32.6.1
restart: always
environment:
ADMIN_PASSWORD: ${ADMIN_PASSWORD}
TIMEZONE_OFFSET: ${TIMEZONE_OFFSET}
IMAGE_DIR: "/opt/nvr/detector/images"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "10"
ports:
- 8080:8080
networks:
main:
aliases:
- camera
volumes:
- ./videos:/opt/nvr/videos
- ./sql:/opt/nvr/conf
- ./streams:/dev/shm/streams
- ./images:/opt/nvr/detector/images
detector_plugin:
container_name: "detector_plugin"
depends_on:
- "camera"
- "redis"
command: sh -c "export && cd /opt/nvr/detector && node /opt/nvr/detector/index.js"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "10"
image: shareai/nvr:nano_r32.6.1
restart: always
env_file:
- ~/.sharpai/token.env
environment:
TIMEZONE_OFFSET: ${TIMEZONE_OFFSET}
IMAGE_DIR: "/opt/nvr/detector/images"
DETECTOR_HTTP_URL: "http://detector:3000/submit/image"
networks:
main:
aliases:
- detector_plugin
ports:
- 3000:3000
volumes:
- ./videos:/opt/nvr/videos
- ~/.sharpai/device_id:/dev/ro_serialno
- ~/.sharpai/group_id:/data/usr/com.deep.workai/cache/groupid.txt
- ./images:/opt/nvr/detector/images
detector:
container_name: "detector"
depends_on:
- "detector_plugin"
#command: sh -c "while [ 1 ] > /dev/null; do sleep 1; done"
logging:
driver: json-file
options:
max-size: "10m"
max-file: "10"
image: shareai/yolo_parking:l4t_r35.1.0
build:
context: ./src
dockerfile: Dockerfile.l4t_r35.1.0
restart: always
runtime: nvidia
ports:
- 5901:5901
- 8000:8080
env_file:
- ~/.sharpai/token.env
privileged: true
environment:
TIMEZONE_OFFSET: ${TIMEZONE_OFFSET}
IMAGE_DIR: "/opt/nvr/detector/images"
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,utility,video
networks:
main:
aliases:
- detector
volumes:
- ./videos:/opt/nvr/videos
- ~/.sharpai/device_id:/dev/ro_serialno
- ~/.sharpai/group_id:/data/usr/com.deep.workai/cache/groupid.txt
- ./images:/opt/nvr/detector/images
networks:
main: