Let’s start with the concept of a regular proxy. I recommend reading the entire article one time first, before starting to set it up. I do my best to divide the subject into sections, divided by headers, so feel free to jump over a section, if you feel like it. What you will learn here, is what a reverse proxy is, how to set it up, and how you can secure it. While my articles are lengthy, you should end up with an understanding of how it all works.
If that’s how you want to do it, here’s a great tutorial, which covers how to set it up. There was a time where I would follow guides, and have no clue on how to troubleshoot failures. I’m a firm believer in understanding what you are doing. If you don’t have one, then follow my guide here on how to get a free one with LetsEncrypt. You should have a domain set up, and have an SSL Certificate associated with it. You should have Docker version 17.12.0+, and Compose version 1.21.0+. However, wouldn’t it be nice to type, and have instant access to your media server? This is exactly what a reverse proxy will do for you, and combining it with Docker, it’s easier than ever. Ever tried setting up some sort of server at home? Where you have to open a new port for every service? And have to remember what port goes to which service, and what your home ip is? This is definitely something that works, and people have been doing it for the longest time.