jeudi 4 novembre 2021

How to serve multiple microserviced web apps with one server

so I am trying to host multiple different web apps on my ubuntu server. One is a blog, one is a game server, one is a education app, etc. Each of these apps I want to design with microservice architecture, for instance I want different modules to have their own databases, such as user authentication for the blog, and its feed to be modular microservice apps.

I was planning on using Nextjs for the front end, flask for apis, and mongodb. But how would I set up the serving of multiple apps and microservices here? I'm not asking to be spoonfed, just a list of what tools I should use and learn.

So basically, I need to configure: Linux Server -> Multiple Domains -> Multiple Web Apps -> Microservice modules within web app

I assume from reading I need to use nginx and docker, but how would I set up this architecture? Would I run nginx to host the apps and run nextjs in a docker container? Or should I just have nginx point to nextjs apps and run the microservices in docker containers? As you can probably tell I really am lost here.




Aucun commentaire:

Enregistrer un commentaire