I'm running a webserver running Ubuntu 18.04 that is currently serving a website and a couple of blogs. I'd also like to set up a Ruby on Rails web application on a couple of Docker containers (so I can possibly deploy to another non-Linux server).
My server is currently using nginx to serve the websites that it's hosting. How do I use the same nginx installation to serve a Rails application in a Docker container? Do I simply expose port 3000 on the container and set nginx to listen to that, using the normal nginx setup for a Rails app? Or is there something else I need to do? I don't want to move nginx to a container - I simply want to use my current nginx to serve an app running in a container.