diff --git a/docker-compose.yml b/docker-compose.yml index cb32f80..0967742 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -128,6 +128,35 @@ services: restart: unless-stopped volumes: - /var/run/docker.sock:/var/run/docker.sock + frigate: + container_name: frigate + environment: + FRIGATE_RTSP_PASSWORD: ${FRIGATE_RTSP_PASSWORD} + privileged: true # this may not be necessary for all setups + restart: unless-stopped + stop_grace_period: 30s # allow enough time to shut down the various services + image: ghcr.io/blakeblackshear/frigate:stable + shm_size: "512mb" # update for your cameras based on calculation above + devices: + # - /dev/bus/usb:/dev/bus/usb # Passes the USB Coral, needs to be modified for other versions + # - /dev/apex_0:/dev/apex_0 # Passes a PCIe Coral, follow driver instructions here https://github.com/jnicolson/gasket-builder + - /dev/video11:/dev/video11 # For Raspberry Pi 4B + # - /dev/dri/renderD128:/dev/dri/renderD128 # AMD / Intel GPU, needs to be updated for your hardware + # - /dev/accel:/dev/accel # Intel NPU + volumes: + - /etc/localtime:/etc/localtime:ro + - ${ARANEA_DOCKER_DIR}/frigate/config:/config + - ${ARANEA_DOCKER_DIR}/frigate/media:/media/frigate + - type: tmpfs # 1GB In-memory filesystem for recording segment storage + target: /tmp/cache + tmpfs: + size: 1000000000 + ports: + - "8971:8971" + - "5000:5000" # Internal unauthenticated access. Expose carefully. + - "8554:8554" # RTSP feeds + - "8555:8555/tcp" # WebRTC over tcp + - "8555:8555/udp" # WebRTC over udp snapcast-client: image: docker.io/sweisgerber/snapcast:latest@sha256:93371ba425a44386a8f98b63c45c3da78f1cc9db7d6cb2483aa7958dab0aa5d6 hostname: snapcast-client