Answer the question
In order to leave comments, you need to log in
How to implement "deploy on demand"?
Hello!
The task is to implement a trial period for a web application (for example, as on the megaplan.ru website):
- the user enters a separate web application, where he creates an account
- based on the entered data, a separate domain is generated username.example.com
on which the application is deployed
- when switching to username.example.com
, in fact, we see our application
The first thing that comes to mind is two scripts: for creating a virtual host and for deploying an application on it, but I suspect there are better options.
Haven't worked with docker before. Perhaps this task is solved better on it?
Answer the question
In order to leave comments, you need to log in
I understand correctly that you want to create a new VPS for each user? I don’t think that anyone practices this, because. it doesn't make much sense (although I don't know what your product is). I think your problem is solved by isolating users from each other at the application level. DNS is configured via wildcard, i.e. A-record like *.domain.com, routing - at the application/web server level.
If you really want to raise a VPS for a user, then the API of the same AWS allows this. You can deploy instances directly from the virtual machine image. Here you need to read the documentation of your hosting provider.
As for Docker, I don't think it can be adapted here somehow.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question