B
B
Ba An Doan2017-05-29 13:04:51
Virtualization
Ba An Doan, 2017-05-29 13:04:51

How to work with Docker correctly?

Good afternoon.
What is the best way to use Docker as a web developer?
Interested in whether to separate 1 project into different containers (eg nginx, php-fpm, mariadb as separate services) and manage via docker-compose or collect everything in 1? I am interested in this question because I see the combine in many projects. For me personally, it is more convenient to divide into services in order to easily change versions of services. Am I doing the right thing? What are the advantages and disadvantages of the second method, besides the fact that you have to rebuild the entire container?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2017-05-29
@doanbaanh

About the "all in one" method: The
advantage is one: launched, it works.
Additional disadvantages:

  • A bunch of processes in one container
  • When transferring over the Internet in one piece (i.e. not from the LEMP-stack image), there will be problems with broken data
  • The impossibility of scaling individual services (but here the complexity of work in the form of orchestration already increases)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question