Using subdomain for a web application how does it work? [closed]

I have an application that i want different companies to use i have setup a subdomain and when i point the it to the application the subdomain call the main application how can i go about this? am using docker for the application.