How to connect to a docker container from a app hosted on vagrant

Is there a way we can connect to a docker-compose container from a vagrant app (both are independent and hosted on one machine). Note that docker-compose is not within vagrant … Please let me know if we can achieve it if yes, steps to follow. Thanks in advance.