rtsp over "Public Device URL"

I’d say you docker-compose file is not correctly configured to route the ports. Could you share the file to check?
Also, found this thread that may help you to diagnose and get some ideas.