Answer the question
In order to leave comments, you need to log in
Where and how to deploy next.js application without devops skills?
Hello.
In connection with you know what actions you know who, the paths to developed sites with ready-made infrastructure are closed to Russian developers.
Problem: front-end developer to deploy a dynamic next.js application on a Russian hosting.
Now I'm trying to deploy an application in the Yandex cloud: I put the application in a container, sent it to the Yandex container registry, launched a VM with a container optimized image in the Yandex cloud, and sent the application to the VM.
Hurrah, everything works!
Just not the right way. The application can only be knocked on port 3000.
I see two ways out: to find an alternative to the Yandex cloud with a ready-made infrastructure that accepts payments by cards of Russian banks, or to figure out how to make the application available without specifying the port.
In issue number two, there was an idea to add an nginx layer, but I'm not sure how to do it, and if it's even necessary, maybe there are simpler alternatives.
Accordingly, there are two questions:
1) what are the platforms where you can send the next.js application (or container) and it will work without additional manipulations?
2) how to make the application available in the Yandex cloud without specifying the port in the site address?
If anyone knows a hosting that is suitable for solving this problem, or knows how to solve this problem in the Yandex cloud, please share.
Dockerfile: https://github.com/vercel/next.js/blob/canary/exam...
Answer the question
In order to leave comments, you need to log in
Managed to solve the problem.
A short how-to:
1) in the Application Load Balancer we create a target group
2) We create a group of backends. In the group, change the port to 3000
3) Create an http route
4) Create a balancer
5) ???
6) Hooray, you (I) are gorgeous
If everything works and the problem is only in the port and HTTPS, then https://cloud.yandex.com/en/docs/application-load-... should help. At least in AWS and other clouds, he knows how to do this.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question