mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
32 lines
862 B
YAML
32 lines
862 B
YAML
version: "3"
|
|
services:
|
|
dev:
|
|
container_name: frigate-dev
|
|
user: vscode
|
|
build:
|
|
context: .
|
|
dockerfile: docker/Dockerfile.dev
|
|
devices:
|
|
- /dev/bus/usb:/dev/bus/usb
|
|
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- .:/opt/frigate:cached
|
|
- ./config/config.yml:/config/config.yml:ro
|
|
- ./debug:/media/frigate
|
|
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
|
target: /tmp/cache
|
|
tmpfs:
|
|
size: 1000000000
|
|
ports:
|
|
- "1935:1935"
|
|
- "5000:5000"
|
|
- "5001:5001"
|
|
- "8080:8080"
|
|
command: /bin/sh -c "sudo /usr/local/nginx/sbin/nginx; while sleep 1000; do :; done"
|
|
mqtt:
|
|
container_name: mqtt
|
|
image: eclipse-mosquitto:1.6
|
|
ports:
|
|
- "1883:1883"
|