-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
34 lines (34 loc) · 966 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
34 lines (34 loc) · 966 Bytes
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
services:
mqtt:
image: eclipse-mosquitto:2
container_name: mosquitto
restart: unless-stopped
ports:
- "1883:1883"
volumes:
- ./mosquitto.conf:/mosquitto/config/mosquitto.conf:ro
frigate:
container_name: frigate
privileged: true
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "1gb" # Increased to handle four high-res cameras
logging:
driver: "json-file"
options:
max-size: "10m" # Max file size before rotating
max-file: "3" # Keep only 3 historical files
volumes:
- /etc/localtime:/etc/localtime:ro
- ./frigate.yml:/config/config.yml
- ./storage:/media/frigate
- type: tmpfs # 1GB In-memory filesystem for recording segments
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
- "5000:5000"
- "8554:8554"
- "8555:8555/tcp"
- "8555:8555/udp"