2021-05-04 17:12:35 -05:00
|
|
|
version: "3"
|
2021-02-17 07:16:39 -06:00
|
|
|
services:
|
2022-11-20 07:34:12 -06:00
|
|
|
devcontainer:
|
|
|
|
container_name: frigate-devcontainer
|
2022-02-22 07:12:11 -06:00
|
|
|
# add groups from host for render, plugdev, video
|
|
|
|
group_add:
|
2022-04-12 07:20:28 -05:00
|
|
|
- "109" # render
|
2022-07-19 06:44:11 -05:00
|
|
|
- "110" # render
|
2022-04-12 07:20:28 -05:00
|
|
|
- "44" # video
|
|
|
|
- "46" # plugdev
|
2021-06-09 07:41:30 -05:00
|
|
|
shm_size: "256mb"
|
2021-02-17 07:16:39 -06:00
|
|
|
build:
|
|
|
|
context: .
|
2023-07-23 16:45:29 -05:00
|
|
|
dockerfile: docker/main/Dockerfile
|
2022-12-30 10:53:17 -06:00
|
|
|
# Use target devcontainer-trt for TensorRT dev
|
2022-11-20 07:34:12 -06:00
|
|
|
target: devcontainer
|
2023-11-18 08:04:43 -06:00
|
|
|
## Uncomment this block for nvidia gpu support
|
|
|
|
# deploy:
|
|
|
|
# resources:
|
|
|
|
# reservations:
|
|
|
|
# devices:
|
|
|
|
# - driver: nvidia
|
|
|
|
# count: 1
|
|
|
|
# capabilities: [gpu]
|
2023-07-26 05:50:41 -05:00
|
|
|
environment:
|
|
|
|
YOLO_MODELS: yolov7-320
|
2022-02-22 07:12:11 -06:00
|
|
|
devices:
|
|
|
|
- /dev/bus/usb:/dev/bus/usb
|
2022-11-20 07:34:12 -06:00
|
|
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
2021-02-17 07:16:39 -06:00
|
|
|
volumes:
|
2022-11-20 07:34:12 -06:00
|
|
|
- .:/workspace/frigate:cached
|
|
|
|
- ./web/dist:/opt/frigate/web:cached
|
2021-02-17 07:16:39 -06:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-04-23 11:35:40 -05:00
|
|
|
- ./config:/config
|
2021-02-17 07:16:39 -06:00
|
|
|
- ./debug:/media/frigate
|
2022-02-26 13:11:00 -06:00
|
|
|
- /dev/bus/usb:/dev/bus/usb
|
2021-02-17 07:16:39 -06:00
|
|
|
mqtt:
|
|
|
|
container_name: mqtt
|
2021-05-04 17:12:35 -05:00
|
|
|
image: eclipse-mosquitto:1.6
|
2021-02-17 07:16:39 -06:00
|
|
|
ports:
|
2021-05-04 17:12:35 -05:00
|
|
|
- "1883:1883"
|