Score:0

Running multiple NGINX instances for routing with multiple docker containers running websites

cn flag

I'm currently running into a problem where I'm hosting multiple websites in docker containers and using the NGINX image in those containers to server the content. An example setup of that would look the following

Website-main -> The main website built with Vue.js and served with NGINX in the container

Website-api -> The API of our website running in a container with Express.js

Website-blog -> Our Blog built with Vue.js and served with NGINX in the container

Now, for them to all be accessible through my Domain, I would need to host all of these on either port 80 or 443.

Now my question about this is, would it be beneficial for me to be running NGINX on my host system or as a standalone container to route/proxy pass port 443 traffic to the specified containers and possibly implement HTTPS. And will there be any overhead in the form of latency or resource usage.

Or if there are any alternatives to solving this issue in a better way.

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.