And what is the domainname of your “main system”? - The Webserver of the main system receives the requst and forwars it to your docker instance, if the domain name fits.
Don’t forget, also to adopt the certificates to the new domain.
Because you did not post the configuration of your system using the Support Template, we only can dig in the dark.