blakeblackshear.frigate/docker-compose.yml

38 lines
958 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
2022-02-22 14:12:11 +01:00
# add groups from host for render, plugdev, video
group_add:
- "109" # render
2022-07-19 13:44:11 +02:00
- "110" # render
- "44" # video
- "46" # plugdev
2021-06-09 14:41:30 +02:00
shm_size: "256mb"
2021-02-17 14:16:39 +01:00
build:
context: .
2021-05-05 00:12:35 +02:00
dockerfile: docker/Dockerfile.dev
2022-02-22 14:12:11 +01:00
devices:
- /dev/bus/usb:/dev/bus/usb
- /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
2021-02-17 14:16:39 +01:00
volumes:
- /etc/localtime:/etc/localtime:ro
2021-05-23 04:03:35 +02:00
- .:/lab/frigate:cached
2021-02-17 14:16:39 +01:00
- ./config/config.yml:/config/config.yml:ro
- ./debug:/media/frigate
2022-02-26 20:11:00 +01:00
- /dev/bus/usb:/dev/bus/usb
2021-02-17 14:16:39 +01:00
ports:
2021-05-05 00:14:25 +02:00
- "1935:1935"
2022-05-20 16:27:39 +02:00
- "3000:3000"
2021-05-05 00:12:35 +02:00
- "5000:5000"
- "5001:5001"
- "8080:8080"
2021-05-23 04:03:35 +02:00
entrypoint: ["sudo", "/init"]
2021-03-03 14:33:50 +01:00
command: /bin/sh -c "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"