Link docker container on a remote server to another remote server in the same network

I have a docker container with a web app running a remote server. And I have a website running on a different remote server. Is there a way to connect them? For example, website.com - is the website, website.com:8080/webapp - is the docker app. These servers are located in the same network.
p.s. Both servers work on a Linux