-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
52 lines (50 loc) · 1.56 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
frigate-mqtt:
image: eclipse-mosquitto:latest
# network_mode: "host" # Should be uncommented at first-time startup
runtime: "nvidia"
restart: unless-stopped
ports:
- "1883:1883"
- "9001:9001"
volumes:
- ./config/mosquitto.conf:/mosquitto/config/mosquitto.conf
- ./logs:/mosquitto/log/mosquitto.log:rw
frigate:
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt-jp4
# network_mode: "host" # Should be uncommented at first-time startup
runtime: "nvidia"
privileged: true
restart: unless-stopped
shm_size: "134mb"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config/config.yml:/config/config.yml
- ./storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
environment:
YOLO_MODELS: "" # Do not download and generate any TRT model
depends_on:
- frigate-mqtt
- frigate-lightstack
frigate-lightstack:
image: ghcr.io/minlaxz/lightstack-api:yolov8-jp4
# network_mode: "host" # Should be uncommented at first-time startup
privileged: true
runtime: "nvidia"
restart: unless-stopped
ports:
- "5001:5000"
volumes:
- ./yolo_models:/home/app/yolo_models
- ./ocr_models:/home/app/ocr_models
- /proc/device-tree/compatible:/proc/device-tree/compatible
- /proc/device-tree/chosen:/proc/device-tree/chosen
devices:
- /dev/gpiochip0