How can I get this docker-compose to work with my wyze cameras

Here is what I have so far. I can manually add a generic camera via the UI, but when I enter the configuration details and click submit, it brings up a preview window showing the snapshot and the rtsp stream. They both look good, but when I click submit from there, it takes me back to the config screen, so it just loops between config and preview.

# from https://www.home-assistant.io/installation/linux#docker-compose

version: "3.8"

networks:
  mynetwork:

services:

    # https://github.com/mrlt8/docker-wyze-bridge
  wyze-bridge:
    container_name: wyze-bridge
    image: mrlt8/wyze-bridge:latest
    restart: unless-stopped
    networks: # Add this if you're not using host network for HA
      - mynetwork
    volumes:
      - ${ROOT}/wyze-bridge/config:/config
    ports:
      - 1935:1935 # RTMP
      - 8554:8554 # RTSP
      - 8888:8888 # HLS
      - 8889:8889 #WebRTC
      - 8189:8189/udp # WebRTC/ICE
      - 5000:5000 # WEB-UI
    environment:
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
      # API Key and ID can be obtained from the wyze dev portal: 
      # https://developer-api-console.wyze.com/#/apikey/view
      - WYZE_EMAIL=${WYZE_EMAIL}
      - WYZE_PASSWORD=${WYZE_PASSWORD}
      - API_ID=${WYZE_API_KEY_ID}
      - API_KEY=${WYZE_API_KEY}
      # [OPTIONAL] IP Address of the host to enable WebRTC e.g.,:
      - WB_IP=192.168.1.100
      # WebUI and Stream authentication:
      - WB_AUTH=True # Set to false to disable web and stream auth.
      - WB_USERNAME=${WB_USERNAME}
      - WB_PASSWORD=${WB_PASSWORD}
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            count: all
            capabilities: [gpu]

  mqtt:
    container_name: mqtt
    image: eclipse-mosquitto:latest
    restart: unless-stopped
    networks: # Add this if you're not using host network for HA
      - mynetwork
    environment:
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
    ports:
      - 1883:1883
      - 9001:9001
    # If you are not using network_mode: host for homeassistant

  homeassistant:
    container_name: homeassistant
    image: "ghcr.io/home-assistant/home-assistant:stable"
    restart: unless-stopped
    # network_mode: host
    networks: # Add this if you're not using host network for HA
      - mynetwork
    privileged: true
    depends_on:
      - wyze-bridge
      - mqtt
    environment:
      - PUID=${PUID} # default user id, defined in .env
      - PGID=${PGID} # default group id, defined in .env
      - TZ=${TZ} # timezone, defined in .env
      - /etc/localtime:/etc/localtime:ro
    volumes:
      - ${ROOT}/home-assistant/config:/config # config files
      - /run/dbus:/run/dbus:ro
    ports:
      - 8123:8123
    deploy:
      resources:
        reservations:
          devices:
          - driver: nvidia
            count: all
            capabilities: [gpu]

What does your generic camera config look like - I struggled with it for a while until this one worked:

I’m using the out-of-the-box add-on and integrations, but that shouldn’t matter, me thinks.