blakeblackshear.frigate/docker-compose.yml

32 lines
862 B
YAML
Raw Normal View History

2021-05-05 00:12:35 +02:00
version: "3"
2021-02-17 14:16:39 +01:00
services:
dev:
2021-05-05 00:12:35 +02:00
container_name: frigate-dev
2021-02-17 14:16:39 +01:00
user: vscode
build:
context: .
2021-05-05 00:12:35 +02:00
dockerfile: docker/Dockerfile.dev
2021-02-17 14:16:39 +01:00
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
2021-05-05 00:12:35 +02:00
- .:/opt/frigate:cached
2021-02-17 14:16:39 +01:00
- ./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
2021-02-17 14:16:39 +01:00
ports:
2021-05-05 00:14:25 +02:00
- "1935:1935"
2021-05-05 00:12:35 +02:00
- "5000:5000"
- "5001:5001"
- "8080:8080"
2021-05-18 07:52:08 +02:00
command: /bin/sh -c "sudo /usr/local/nginx/sbin/nginx; while sleep 1000; do :; done"
2021-02-17 14:16:39 +01:00
mqtt:
container_name: mqtt
2021-05-05 00:12:35 +02:00
image: eclipse-mosquitto:1.6
2021-02-17 14:16:39 +01:00
ports:
2021-05-05 00:12:35 +02:00
- "1883:1883"