This commit is contained in:
Waylon Walker 2025-11-22 22:20:32 -06:00
parent 8c0277c8f3
commit 9e2c30af22
60 changed files with 8853 additions and 232 deletions

View file

@ -0,0 +1,30 @@
version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "64mb" # 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/apex_0:/dev/apex_0 # Passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/video11:/dev/video11 # For Raspberry Pi 4B
- /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware
volumes:
- ./config:/config
- storage:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5050:5000"
- "8654:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp
environment:
- FRIGATE_RTSP_PASSWORD="password"
- TZ=America/Chicago
volumes:
config:
storage:

166
frigate/frigate.yaml Normal file
View file

@ -0,0 +1,166 @@
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert --namespace frigate -o frigate.yaml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: frigate
name: frigate
namespace: frigate
spec:
ports:
- name: "5000"
port: 5000
targetPort: 5000
- name: "8554"
port: 8554
targetPort: 8554
- name: "8555"
port: 8555
targetPort: 8555
- name: 8555-udp
port: 8555
protocol: UDP
targetPort: 8555
selector:
io.kompose.service: frigate
status:
loadBalancer: {}
---
apiVersion: v1
kind: Namespace
metadata:
creationTimestamp: null
name: frigate
namespace: frigate
spec: {}
status: {}
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert --namespace frigate -o frigate.yaml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.service: frigate
name: frigate
namespace: frigate
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: frigate
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert --namespace frigate -o frigate.yaml
kompose.version: 1.31.2 (a92241f79)
creationTimestamp: null
labels:
io.kompose.network/frigate-default: "true"
io.kompose.service: frigate
spec:
containers:
- env:
- name: FRIGATE_RTSP_PASSWORD
value: '"password"'
- name: TZ
value: America/Chicago
image: ghcr.io/blakeblackshear/frigate:stable
name: frigate
ports:
- containerPort: 5000
hostPort: 5000
protocol: TCP
- containerPort: 8554
hostPort: 8554
protocol: TCP
- containerPort: 8555
hostPort: 8555
protocol: TCP
- containerPort: 8555
hostPort: 8555
protocol: UDP
resources: {}
securityContext:
privileged: true
volumeMounts:
- mountPath: /config
name: config
- mountPath: /media/frigate
name: storage
- mountPath: /tmp/cache
name: frigate-claim2
restartPolicy: Always
volumes:
- name: config
persistentVolumeClaim:
claimName: config
- name: storage
persistentVolumeClaim:
claimName: storage
- name: frigate-claim2
persistentVolumeClaim:
claimName: frigate-claim2
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: config
name: config
namespace: frigate
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: storage
name: storage
namespace: frigate
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
creationTimestamp: null
labels:
io.kompose.service: frigate-claim2
name: frigate-claim2
namespace: frigate
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
status: {}