Answer the question
In order to leave comments, you need to log in
How to properly deploy your application?
Hello everyone.
I would like to know how to deal with nginx and docker when there is:
* a web application with a database (in the containers described in docker-compose)
* an empty vps (without nginx)
I saw that some people roll nginx directly into the same compose file, and proxied outside port 80 (I don’t understand how to do it without it). I wanted to know when to do this, and when to just install nginx on the system and pipe it to your container with the application and the database.
in general, is it necessary to throw nginx into docker and if so, why and under what circumstances.
Thanks for reading.
Answer the question
In order to leave comments, you need to log in
Nginx is put into docker-compose to get a ready-made live web application instance after docker-compose up
. If several applications are running on the target server and routing / balancing is needed in front of them, then the reverse proxy is deployed and managed separately in this case.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question