Frigate on Docker, in Windows Subsystem for Linux (WSL)

https://github.com/blakeblackshear/frigate/discussions/4375

My docker-compose

version: "3.9"

volumes:
  SurveillanceVideos:
    driver: local
    driver_opts:
      type: nfs4
      o: addr=192.168.1.10,rw,noatime
      device: :/volume1/SurveillanceVideos/frigate

services:
  frigate:
    container_name: frigate
    privileged: true # this may not be necessary for all setups
    restart: always
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "320mb" # 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://coral.ai/docs/m2/get-started/#2a-on-linux
      # - /dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware

    deploy:    # <------------- Add this section
      resources:
        reservations:
          devices:
            - driver: nvidia
              #device_ids: ['0'] # this is only needed when using multiple GPUs
              count: all # number of GPUs
              capabilities: [gpu]

    volumes:
      - \\wsl$$\Ubuntu\etc\localtime:/etc/localtime:ro
      - \\wsl$$\Ubuntu\home\genesys\frigate\config.yml:/config/config.yml
      - \\wsl$$\Ubuntu\home\genesys\frigate\db:/db
      # - \\wsl$$\Ubuntu\home\genesys\frigate\clips:/media/frigate
      - SurveillanceVideos:/media/frigate
      # - SurveillanceVideos:/config/config.yml
      # - SurveillanceVideos:/db
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000

    ports:
      - "5000:5000"
      - "8554:8554" # RTSP feeds
      - "8555:8555/tcp" # WebRTC over tcp
      - "8555:8555/udp" # WebRTC over udp


    # environment:
    #   FRIGATE_MQTT_USER: video_user
    #   FRIGATE_MQTT_PASSWORD: wi7b6p9n8qer78n
    #   FRIGATE_RTSP_USER: homeassistant
    #   FRIGATE_RTSP_PASSWORD: O@5bPH1UNE87