forked from open-edge-platform/edge-ai-suites
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.smart-nvr.yaml
More file actions
144 lines (138 loc) · 4.1 KB
/
compose.smart-nvr.yaml
File metadata and controls
144 lines (138 loc) · 4.1 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
# Copyright (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
services:
frigate:
container_name: frigate-vms
image: ghcr.io/blakeblackshear/frigate:0.15.1
restart: unless-stopped
shm_size: "142mb"
networks:
- live-video-network
ports:
- "5000:5000"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 10s
timeout: 10s
retries: 40
start_period: 5s
volumes:
- ${LIVE_SEARCH_CONFIG_DIR:-./config}/frigate-config:/config
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
- ${LIVE_SEARCH_CONFIG_DIR:-./config}/videos:/videos
- frigate_recordings:/media/frigate/recordings
depends_on:
mqtt-broker:
condition: service_healthy
video-search:
condition: service_started
environment:
no_proxy: ${no_proxy},frigate,${VSS_SUMMARY_IP},${VLM_SERVING_IP}
NO_PROXY: ${no_proxy},frigate,${VSS_SUMMARY_IP},${VLM_SERVING_IP}
FRIGATE_MQTT_PASSWORD: ${MQTT_PASSWORD}
FRIGATE_MQTT_USER: ${MQTT_USER}
OPENAI_BASE_URL: "http://${VLM_SERVING_IP}:${VLM_SERVING_PORT}/v1"
OPENAI_API_KEY: "your_openai_api_key"
nvr-event-router:
container_name: nvr-event-router
image: ${REGISTRY}nvr-event-router:${SMART_NVR_STACK_TAG:-${TAG:-latest}}
restart: unless-stopped
networks:
- live-video-network
ipc: host
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 10s
retries: 40
start_period: 5s
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- frigate_recordings:/media/frigate/recordings
depends_on:
frigate:
condition: service_healthy
mqtt-broker:
condition: service_healthy
redis:
condition: service_healthy
video-search:
condition: service_started
ports:
- "8000:8000"
environment:
MODE: "backend"
FRIGATE_BASE_URL: ${FRIGATE_BASE_URL}
VSS_SEARCH_URL: ${VSS_SEARCH_URL}
VSS_SUMMARY_URL: ${VSS_SUMMARY_URL}
no_proxy: ${no_proxy},frigate-vms,${PM_HOST},${VLM_SERVING_IP},mqtt-broker,${HOST_IP},localhost,nginx
MQTT_BROKER: mqtt-broker
MQTT_PORT: 1883
SCENESCAPE_MQTT_BROKER: mqtt-broker
SCENESCAPE_MQTT_PORT: 1883
REDIS_HOST: redis
MQTT_USER: ${MQTT_USER}
MQTT_PASSWORD: ${MQTT_PASSWORD}
HOST_IP: ${HOST_IP}
mqtt-broker:
image: eclipse-mosquitto:2.0.21
container_name: mqtt-broker
networks:
- live-video-network
ports:
- "1883:1883"
volumes:
- ${LIVE_SEARCH_CONFIG_DIR:-./config}/mqtt-config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- mosquitto_data:/mosquitto/data
- mosquitto_log:/mosquitto/log
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
environment:
MQTT_USER: ${MQTT_USER}
MQTT_PASSWORD: ${MQTT_PASSWORD}
command: >
sh -c "
touch /mosquitto/config/pwfile &&
mosquitto_passwd -c -b /mosquitto/config/pwfile $${MQTT_USER} $${MQTT_PASSWORD} &&
chmod 0700 /mosquitto/config/pwfile &&
chown mosquitto:mosquitto /mosquitto/config/pwfile &&
mosquitto -c /mosquitto/config/mosquitto.conf
"
healthcheck:
test: mosquitto_sub -u $$MQTT_USER -P $$MQTT_PASSWORD -t '$$SYS/#' -C 1 -i healthcheck -W 3
interval: 30s
timeout: 10s
retries: 5
start_period: 20s
restart: unless-stopped
redis:
image: redis:7
container_name: redis
restart: unless-stopped
networks:
- live-video-network
volumes:
- redis_data:/data
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
networks:
live-video-network:
driver: bridge
volumes:
mosquitto_data:
mosquitto_log:
frigate_recordings:
redis_data: