Correct Docker Compose for Windows Docker Desktop with WSL2

Anyone have the correct Docker Compose to get the Channels DVR TVE container running using Windows Docker Desktop with WSL2 (Linux compatible) and Portainer?

The Compose on hub.docker.com reads like this:

channels-dvr:
image: fancybits/channels-dvr:latest
container_name: channels-dvr
network_mode: host
ports:
- "8089:8089"
restart: unless-stopped
devices:
- /dev/dri:/dev/dri
volumes:
- /mnt/disk/dvr/config:/channels-dvr
- /mnt/disk/dvr/recordings:/shares/DVR

I know that the "latest" tag needs to be changed to "tve" (since I need TV Everywhere), "network mode: host" needs to be removed (no support for Bonjour apparently), and "devices: -/dev/dri:/dev/dri" also must be removed (removing support for hardware transcoding maybe?). So I guess I just need to know how to map the needed volumes. I've tried a few things, but I'm getting warnings about the paths being outside the container or the like (apparently resulting in poor performance?).

If anyone has a working set of Compose commands that I can plug into a Portainer Stack under Windows -- I'd appreciate it!

I use this of course you would have to change the paths. I do not think there is hardware transcoding in Windows Docker.

docker run -p 8089:8089 -e TZ=America/Los_Angeles --detach --name=channels-dvr --restart=always --volume R:\ChannelsDVRMainconfig:/channels-dvr --volume R:\ChannelsDVRMain:/ChannelsDVRMain fancybits/channels-dvr:tve

OK, so translating that into Compose, I just tried:

channels-dvr:
image: fancybits/channels-dvr:tve
container_name: channels-dvr
ports:
- "8089:8089"
restart: unless-stopped
volumes:
- h:\dvr-config:/channels-dvr
- h:\dvr:/shares/DVR

And, right after the Stack is deployed, I get a Windows caution notification that reads:

Docker Desktop - Filesharing
Docker Desktop has detected that
you shared a Windows file into a
WSL 2 container, which may perform
poorly. Click here for more details.

The container is running, so I suppose I could just ignore it. But this warning, combined with no hardware transcoding support, suggests to me that we should probably stay away from running Channels DVR under the Windows WSL2 version of Docker.

That filesharing warning I just ignore I have had no slowdowns. As far as Hardware transcoding I have a powerful server so really do not need hardware transcoding.