services: frigate: image: ghcr.io/blakeblackshear/frigate:stable container_name: frigate restart: unless-stopped privileged: true shm_size: ${SHM_SIZE:-256mb} environment: - TZ=${TZ:-Europe/Berlin} - FRIGATE_RTSP_PASSWORD=${RTSP_PASSWORD:-change-me} ports: - "${HTTP_PORT:-8971}:8971" - "${RTSP_PORT:-8554}:8554" - "${WEBRTC_PORT:-8555}:8555/tcp" - "${WEBRTC_PORT:-8555}:8555/udp" volumes: # The config lives with the stack so you can edit it here; the directory # underneath holds Frigate's database and model cache. - ${DATA_PATH:-/srv/frigate}/config:/config - ./config.yml:/config/config.yml - ${MEDIA_PATH:-/srv/frigate/media}:/media/frigate - /etc/localtime:/etc/localtime:ro - type: tmpfs target: /tmp/cache tmpfs: size: 1000000000 # Uncomment what your host actually has: # devices: # # Google Coral USB accelerator # - /dev/bus/usb:/dev/bus/usb # # Intel iGPU for hardware decoding # - /dev/dri/renderD128:/dev/dri/renderD128