Sorry for the delay, Real Life(tm) issues...
I am not sure where the issues lie, as I've never seen the errors I'm seeing in the docker version.
I am also unable to set up any of my foscam (rtsp/onvif mode) or d-link (standard ip cameras) or RPis (mjpeg mode) in it.
I would thus attribute most of the issue to the docker container, rather than motionEye, as at least the d-link and RPis work in the clean install of motionEye 0.43.1b2 on Debian 12. There is an issue with RTSP/ONVIF in 0.43.1b2, though, but I cannot diagnose fully without getting the other camera types working first.
I did have to remark out the networking (as you are using vlans and other ips, and I don't in my lab) but my setup for this was:
Win10 host
Virtualbox 7.1.6
Debian12 guest updated to yesterday
docker.io version 20.10.24+dfsg1, build 297e128
docker-compose version 1.29.2, build unknown
When running your docker-compose file it did set up:
motionEye version 0.43.1b2
motion 4.7.0
OS version Linux 6.1.0-33-amd64
"Theoretically" it should be working for at least the non-rtsp/onvif cameras...