Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
parkpow
GitHub Repository: parkpow/deep-license-plate-recognition
Path: blob/master/stream/ipro-adam-app/container/docker-compose.yaml
1091 views
1
services:
2
adam:
3
image: "stream-adam:1.2"
4
command: /app/bin/platerecognizerStream
5
environment:
6
- LD_LIBRARY_PATH=/usr/share/lib:/usr/share/common
7
- CADAM_APP_TYPE=i-PRO
8
- CADAM_LOG_LEVEL=6
9
- APPLICATION_NAME=platerecognizerStream
10
networks:
11
- nw-frontend
12
restart: always
13
# deploy:
14
# resources:
15
# limits:
16
# # cpus: "1.00"
17
# memory: "52428800"
18
# mem_reservation: "52428800"
19
20
read_only: true
21
user:
22
1000:1000
23
cap_drop:
24
- "net_raw"
25
security_opt:
26
- "label=type:ipro-container.process"
27
- "no-new-privileges"
28
29
devices:
30
- "/dev/cavalry:/dev/cavalry:mrw"
31
- "/dev/iav:/dev/iav:mrw"
32
volumes:
33
- type: volume
34
source: adam
35
target: "/ai_data"
36
read_only: false
37
consistency: default
38
- type: bind
39
target: "/usr/share/lib"
40
source: "/mnt/system/adam/bin/share/lib/extdocker"
41
read_only: true
42
consistency: default
43
- type: bind
44
target: "/usr/share/common"
45
source: "/mnt/system/adam/bin/share/lib/common"
46
read_only: true
47
consistency: default
48
- type: bind
49
target: "/lib/python3.7"
50
source: "/lib/python3.7"
51
read_only: true
52
consistency: default
53
- type: bind
54
target: "/lib/firmware"
55
source: "/lib/firmware"
56
read_only: true
57
consistency: default
58
- type: bind
59
target: "/dev/shm/Adam"
60
source: "/dev/shm/Adam"
61
read_only: false
62
consistency: default
63
- type: bind
64
target: "/dev/shm/Adamapp"
65
source: "/dev/shm/Adamapp"
66
read_only: false
67
consistency: default
68
- type: bind
69
target: "/tmp/avsc"
70
source: "/tmp/avsc"
71
read_only: false
72
consistency: default
73
- type: bind
74
target: "/tmp/sysba"
75
source: "/tmp/sysba"
76
read_only: false
77
consistency: default
78
- type: bind
79
target: "/etc/localtime"
80
source: "/tmp/tz/localtime"
81
read_only: true
82
consistency: default
83
- type: bind
84
target: "/tmp/ipc_sock"
85
source: "/tmp/ipc_sock"
86
read_only: false
87
consistency: default
88
- type: bind
89
target: "/tmp/capability"
90
source: "/tmp/capability"
91
read_only: true
92
consistency: default
93
- type: bind
94
target: "/tmp/fw_tmp"
95
source: "/tmp/fw_tmp"
96
read_only: false
97
consistency: default
98
- type: bind
99
target: "/mnt/system/stats/uptime_total"
100
source: "/mnt/system/stats/uptime_total"
101
read_only: true
102
consistency: default
103
- type: bind
104
target: "/var/log/adam"
105
source: "/var/log/adam"
106
read_only: false
107
consistency: default
108
- type: bind
109
target: "/tmp/pflog_mask_shmid"
110
source: "/tmp/pflog_mask_shmid"
111
read_only: false
112
consistency: default
113
114
tmpfs:
115
- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000
116
117
labels:
118
com.i-pro.app-type: "ext"
119
com.i-pro.device-category: "CV5x-A"
120
com.i-pro.device-vendor: "i-PRO"
121
122
init: true
123
ipc: host
124
125
sdk:
126
image: "alpr-stream:arm-lite"
127
networks:
128
- nw-frontend
129
restart: always
130
volumes:
131
- type: volume
132
source: adam
133
target: "/ai_data"
134
read_only: false
135
consistency: default
136
137
- type: volume
138
source: sdk
139
target: "/user-data"
140
read_only: false
141
consistency: default
142
143
# Using SD Card
144
# Uncomment below in place of `sdk` volume above.
145
# `source` can be set to any directory under the /mnt/sda/adamapp directory.
146
# With camera firmware v3.45 or later, these directories are automatically created on the SD card when the app is installed.
147
# For previous firmware, you need to create the folder manually.
148
# https://dev-partner-en.i-pro.com/space/TPFAQEN/1538556241/Container+AdamApp+basic+architecture+and+guidelines#3.4.1-Use-SD-card
149
# - type: bind
150
# target: "/user-data"
151
# source: "/mnt/sda/adamapp/stream"
152
# read_only: false
153
# consistency: default
154
155
tmpfs:
156
- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000
157
158
# read config from /ai_data/env-file.ini
159
# command: cat /ai_data/env-file.ini
160
environment:
161
- EXTRA_ENV_FILE=/ai_data/env-file.ini
162
163
read_only: true
164
user:
165
1000:1000
166
cap_drop:
167
- "net_raw"
168
security_opt:
169
- "label=type:ipro-container.process"
170
- "no-new-privileges"
171
labels:
172
com.i-pro.app-type: "sub"
173
com.i-pro.device-category: "CV5x-A"
174
com.i-pro.device-vendor: "i-PRO"
175
depends_on:
176
- adam
177
178
volumes:
179
adam:
180
sdk:
181
182
183
networks:
184
nw-frontend:
185
driver: bridge
186
187