How to run a dedicated server?

Hello I wanted to implement to my a game multiplayer fonctions with steam.
Taking the example of Raimbow 6, you can host a lobby and invite steam friends. After that when you search for a match it will send all the people of the lobby to the same match. How can I implement that the match is running a dedicated server?