mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-26 19:06:11 +01:00
65825040a3
* Make it easier to run the devcontainer * Some more improvements * Tidy up few other things * Better name stages * Fix CI * Setup everything with one click * Allow to set IMAGE_OWNER * Change IMAGE_OWNER to IMAGE_REPO * Fix CI with IMAGE_REPO * Fix nodejs installation * Test devcontainer build as part of CI * Build devcontainer in its own job * Fix devcontainer cli installation * Fix devcontainer build * Fix devcontainer build in CI again * Enable buildkit only * Increase coverage of devcontainer test * Fix devcontainer start in CI * Ensure latest version of docker compose is used * Fix install compose action * Disable CI stuff which does not work until we fix them
30 lines
797 B
YAML
30 lines
797 B
YAML
version: "3"
|
|
services:
|
|
devcontainer:
|
|
container_name: frigate-devcontainer
|
|
# add groups from host for render, plugdev, video
|
|
group_add:
|
|
- "109" # render
|
|
- "110" # render
|
|
- "44" # video
|
|
- "46" # plugdev
|
|
shm_size: "256mb"
|
|
build:
|
|
context: .
|
|
target: devcontainer
|
|
devices:
|
|
- /dev/bus/usb:/dev/bus/usb
|
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
|
volumes:
|
|
- .:/workspace/frigate:cached
|
|
- ./web/dist:/opt/frigate/web:cached
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ./config/config.yml:/config/config.yml:ro
|
|
- ./debug:/media/frigate
|
|
- /dev/bus/usb:/dev/bus/usb
|
|
mqtt:
|
|
container_name: mqtt
|
|
image: eclipse-mosquitto:1.6
|
|
ports:
|
|
- "1883:1883"
|