S
S
shude2018-12-25 14:18:01
PHP
shude, 2018-12-25 14:18:01

How to host microservices with Docker?

Good day!
Help with thoughts and reflections. There are a number of machines with docker on which php microservices should be running. Absolutely all applications depend on two containers nginx and php-fpm plus some specific containers for each. How to host multiple microservices on the same machine? Starting your own php-fpm for each service seems somehow expensive in terms of resources. Isn't there some mechanism by any chance that allows shared containers to be used across multiple applications? Or does it go against the ideology?
How to do it right (what to think about)? Or is there nothing wrong with running several php-fpm containers on the same host for each application?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-12-25
@Zarom

You absolutely in any case will start the php-fpm process for each application. Most likely more than one.
Each container must be self-sufficient and communicate with the outside world through a port. Those. you will have php-fpm running in every container with your applications.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question