It would reach it via the public domain I would guess, so it is not dependent on the local docker network addresses.
All this is not an elegant solution for sure but to have this well supported we would need to have a quite sophisticated reverseproxy/nginx config UI somehow.