I am running caddy on port 443 as a custom app, should be the same way. You just need to use a bridge interface which you need for VMs anyway, and, assign it a static ip. Example:
I presume this is going to change when docker compose based Electric Eel comes out. I don’t think you’ll have any issue then, simpler.