You really don’t want to do that.
To do that your troubleshooting machine will need https. For $10/month you can spin up a digital ocean droplet. If you’d rather contrive to make docker work on your mac and configure your router to route traffic to it from the internet so that let’s encrypt can work you can do that. And if you do something other that a real install on your laptop to troubleshoot the problem you won’t know whether you’re troubleshooting the mac or troubleshooting your problem.