Subdomains with docker

hey guys,

want to install some containers on my docker server, but i have a question.

i have a domain, pointing on servers IP.

mydomain -> server IP

now i want to install some things like rocket chat, prestashop, some cms etc.

what is now the right way to point with sub domains on my container?

like chat.mydomain.com -> rocket chat
shop.mydomain.com -> shop… and so on.

thanks in advance