Created
August 5, 2025 12:50
-
-
Save DanClarke-io/9ae788498acdcd8199f3f47452037928 to your computer and use it in GitHub Desktop.
Config for Frigate with TPU
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.9" | |
| services: | |
| frigate: | |
| environment: | |
| - FRIGATE_RTSP_PASSWORD=password | |
| container_name: frigate | |
| privileged: true # this may not be necessary for all setups | |
| restart: unless-stopped | |
| # image: blakeblackshear/frigate:stable | |
| image: ghcr.io/blakeblackshear/frigate:stable | |
| #image: ghcr.io/blakeblackshear/frigate:dev-eed08f5 | |
| shm_size: "512mb" # update for your cameras based on calculation above | |
| devices: | |
| - /dev/bus/usb:/dev/bus/usb # Passes the USB Coral, needs to be modified for other versions | |
| # - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware | |
| logging: | |
| driver: "json-file" | |
| options: | |
| max-size: "50m" | |
| deploy: | |
| resources: | |
| reservations: | |
| devices: | |
| - driver: nvidia | |
| count: 1 | |
| capabilities: [gpu] | |
| volumes: | |
| - /etc/localtime:/etc/localtime:ro | |
| - /opt/frigate:/config | |
| - /opt/frigate/config.yml:/config/config.yml:rw | |
| - /sharedfolders/SharedData/CCTV/frigate:/media/frigate | |
| - type: tmpfs # Optional: 5GB of memory, reduces SSD/SD Card wear | |
| target: /tmp/cache | |
| tmpfs: | |
| size: 5000000000 | |
| ports: | |
| - "5000:5000" | |
| - "8554:8554" # RTSP feeds | |
| - "1984:1984" # Go2RTC | |
| - "8555:8555/tcp" # WebRTC over tcp | |
| - "8555:8555/udp" # WebRTC over udp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment