M
M
Maksim2020-09-18 14:14:58
Software Deployment
Maksim, 2020-09-18 14:14:58

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

2 answer(s)
C
chupasaurus, 2020-09-18
@goncharoff-ms

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.

S
Sanes, 2020-09-18
@Sanes

Before using docker, ask about data persistence.
Will immediately want to use it.
It's easier to write an Ansible script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question