44 lines
1017 B
YAML
44 lines
1017 B
YAML
version: "3"
|
|
services:
|
|
dev:
|
|
image: ghcr.io/blakeblackshear/frigate
|
|
container_name: frigate
|
|
# user: vscode
|
|
privileged: true
|
|
shm_size: "256mb"
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- frigate-config:/config/
|
|
- frigate-storage:/media/frigate
|
|
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
|
target: /tmp/cache
|
|
tmpfs:
|
|
size: 1000000000
|
|
- /dev/bus/usb:/dev/bus/usb
|
|
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
|
ports:
|
|
- "5935:1935"
|
|
- "5000:5000"
|
|
- "5001:5001"
|
|
- "5085:8080"
|
|
runtime: nvidia
|
|
mqtt:
|
|
container_name: mqtt
|
|
image: eclipse-mosquitto:1.6
|
|
ports:
|
|
- "1883:1883"
|
|
|
|
volumes:
|
|
frigate-config:
|
|
driver: local
|
|
driver_opts:
|
|
type: 'none'
|
|
o: 'bind'
|
|
device: '/data/frigate/config/'
|
|
frigate-storage:
|
|
driver: local
|
|
driver_opts:
|
|
type: 'none'
|
|
o: 'bind'
|
|
device: '/data/frigate/data/'
|