Score:0

Is there a solution that does with Phusion Passenger does, but for multiple Docker websites?

cn flag

Let's assume I have a server running multiple Dockerized websites - I realise that I can configure a reverse proxy (such as Nginx or Apache) to examine the headers of incoming HTTP requests, and send them through to different local ports, if I run each Dockerized website on a different local port number - thereby hosting several [smaller] websites on one host.

However, the configuration of this arrangement feels rather manual - I have to keep track of port numbers, and ensure the docker instances are running correctly.

It occurs to me that a great [theoretical] solution would be what Phusion Passenger does for web applications, such as those based on Ruby on Rails.

Passenger, as I understand it, sees an incoming request, checks to see if that application is running, and if so, sends the request through to that application - and if it's not running, it fires up an instance. (It also allows you to - configurably - shut down sites that haven't been used for some time.) It manages the transport between Nginx/Apache and the application servers, so there is no manual keeping track of port numbers.

So my question is: is there a solution that does what Phusion Passenger does, but for multiple Dockerised web applications - i.e. starts/stops them automatically, and manages connections from host name to appropriate docker instance without requiring a manual keeping track of port numbers?

Or ... am I coming at this problem entirely the wrong way, and is there a much better of running multiple Dockerised websites on one host?

Many thanks for any input.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.