30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
services:
|
|
frigate:
|
|
devices:
|
|
- /dev/dri/renderD128
|
|
environment:
|
|
- TZ=America/Los_Angeles
|
|
- PLUS_API_KEY=edbbadc2-b064-4959-b655-b64b8e0c8912:42886a61c5546c354561adf197512fc53fab8347
|
|
container_name: frigate
|
|
network_mode: host
|
|
image: ghcr.io/blakeblackshear/frigate:0.15.0-rc1
|
|
privileged: true # Required for accessing hardware, such as USB Coral TPU (if needed)
|
|
shm_size: '8g' # Increase shared memory for higher resolution streams
|
|
mem_swappiness: 0
|
|
restart: unless-stopped
|
|
volumes:
|
|
- /usr/docker/frigate/config:/config # Path for Frigate config
|
|
- /media/frigate:/media/frigate # Path for saving recordings
|
|
- /etc/localtime:/etc/localtime:ro # Sync host time with container
|
|
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
|
target: /tmp/cache
|
|
tmpfs:
|
|
size: 8000000000
|
|
#ports:
|
|
# - "8971:8971"
|
|
# - "8554:8554" # RTSP feeds
|
|
# - "1984:1984"
|
|
# - "5000:5000"
|
|
# - "8555:8555/tcp" # WebRTC over tcp
|
|
# - "8555:8555/udp" # WebRTC over udp
|