Flask in docker with NGINX (nginx isnt in a container) as a reverse proxy to be able to use a domain name

  docker, flask, nginx, reverse-proxy

How do I run Flask inside a docker container with NGINX acting as a reverse proxy? My goal is to run flask inside docker on port 5000, but at the same time being able to use my domain name. So instead of typing myserversip:5000 I can type something.com to reach the website?

Any ideas? If so, an explanation would be nice

Note: Sorry if this this question isn’t clear, let me know in the comments if its not and I’ll do my best to fix it.

Source: Docker Questions