Remote selenium

Anyone know of a way to use a remote selenium or zalenium server with drone the main issue being resolving the containers with in drone.

So if one of my containers is called react I need the selenium-hub on another host to be able to connect and resolve that hostname and the hostname’s of other services (api’s) which are part of the build.

using browser stack they let you do some kind of reverse tunnel is this possible when running your own ?

The only way I can currently think of is to setup a swarm but this is limited when running tests locally you still want to use the remote hub but not connect your machine to the swarm.

Any ideas / suggestions ?