Path: blob/master/stream/ipro-adam-app/container/docker-compose.yaml
1091 views
services:1adam:2image: "stream-adam:1.2"3command: /app/bin/platerecognizerStream4environment:5- LD_LIBRARY_PATH=/usr/share/lib:/usr/share/common6- CADAM_APP_TYPE=i-PRO7- CADAM_LOG_LEVEL=68- APPLICATION_NAME=platerecognizerStream9networks:10- nw-frontend11restart: always12# deploy:13# resources:14# limits:15# # cpus: "1.00"16# memory: "52428800"17# mem_reservation: "52428800"1819read_only: true20user:211000:100022cap_drop:23- "net_raw"24security_opt:25- "label=type:ipro-container.process"26- "no-new-privileges"2728devices:29- "/dev/cavalry:/dev/cavalry:mrw"30- "/dev/iav:/dev/iav:mrw"31volumes:32- type: volume33source: adam34target: "/ai_data"35read_only: false36consistency: default37- type: bind38target: "/usr/share/lib"39source: "/mnt/system/adam/bin/share/lib/extdocker"40read_only: true41consistency: default42- type: bind43target: "/usr/share/common"44source: "/mnt/system/adam/bin/share/lib/common"45read_only: true46consistency: default47- type: bind48target: "/lib/python3.7"49source: "/lib/python3.7"50read_only: true51consistency: default52- type: bind53target: "/lib/firmware"54source: "/lib/firmware"55read_only: true56consistency: default57- type: bind58target: "/dev/shm/Adam"59source: "/dev/shm/Adam"60read_only: false61consistency: default62- type: bind63target: "/dev/shm/Adamapp"64source: "/dev/shm/Adamapp"65read_only: false66consistency: default67- type: bind68target: "/tmp/avsc"69source: "/tmp/avsc"70read_only: false71consistency: default72- type: bind73target: "/tmp/sysba"74source: "/tmp/sysba"75read_only: false76consistency: default77- type: bind78target: "/etc/localtime"79source: "/tmp/tz/localtime"80read_only: true81consistency: default82- type: bind83target: "/tmp/ipc_sock"84source: "/tmp/ipc_sock"85read_only: false86consistency: default87- type: bind88target: "/tmp/capability"89source: "/tmp/capability"90read_only: true91consistency: default92- type: bind93target: "/tmp/fw_tmp"94source: "/tmp/fw_tmp"95read_only: false96consistency: default97- type: bind98target: "/mnt/system/stats/uptime_total"99source: "/mnt/system/stats/uptime_total"100read_only: true101consistency: default102- type: bind103target: "/var/log/adam"104source: "/var/log/adam"105read_only: false106consistency: default107- type: bind108target: "/tmp/pflog_mask_shmid"109source: "/tmp/pflog_mask_shmid"110read_only: false111consistency: default112113tmpfs:114- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000115116labels:117com.i-pro.app-type: "ext"118com.i-pro.device-category: "CV5x-A"119com.i-pro.device-vendor: "i-PRO"120121init: true122ipc: host123124sdk:125image: "alpr-stream:arm-lite"126networks:127- nw-frontend128restart: always129volumes:130- type: volume131source: adam132target: "/ai_data"133read_only: false134consistency: default135136- type: volume137source: sdk138target: "/user-data"139read_only: false140consistency: default141142# Using SD Card143# Uncomment below in place of `sdk` volume above.144# `source` can be set to any directory under the /mnt/sda/adamapp directory.145# With camera firmware v3.45 or later, these directories are automatically created on the SD card when the app is installed.146# For previous firmware, you need to create the folder manually.147# https://dev-partner-en.i-pro.com/space/TPFAQEN/1538556241/Container+AdamApp+basic+architecture+and+guidelines#3.4.1-Use-SD-card148# - type: bind149# target: "/user-data"150# source: "/mnt/sda/adamapp/stream"151# read_only: false152# consistency: default153154tmpfs:155- /tmp/local:rw,noexec,nosuid,gid=1000,uid=1000156157# read config from /ai_data/env-file.ini158# command: cat /ai_data/env-file.ini159environment:160- EXTRA_ENV_FILE=/ai_data/env-file.ini161162read_only: true163user:1641000:1000165cap_drop:166- "net_raw"167security_opt:168- "label=type:ipro-container.process"169- "no-new-privileges"170labels:171com.i-pro.app-type: "sub"172com.i-pro.device-category: "CV5x-A"173com.i-pro.device-vendor: "i-PRO"174depends_on:175- adam176177volumes:178adam:179sdk:180181182networks:183nw-frontend:184driver: bridge185186187