commit 3071e9915ff2e333ee9ab34fb9a473393a2fd921 Author: marcus Date: Sat Jan 20 05:51:40 2024 +0000 Add docker-compose.yml diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..e16887b --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,43 @@ +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/'