A
A
agreIT2019-11-14 10:04:28
Nginx
agreIT, 2019-11-14 10:04:28

How to rationally use traefik+nginx+php-fpm for multiple docker projects?

There are 3 different projects. Now they are tied to one nginx (1 instance) + php7.3_apache (3 instances) within the docker framework.

How to correctly (rationally) use one proxy server (in this case, Traefik), in conjunction with php-fpm + nginx?

My suggestion

5dccfc442d5bf391109578.png


What solutions do you use for this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2019-11-14
@OnYourLips

The second option is definitely wrong.
You have your own fpm and your compiled code in the fpm image of each application.
The minimum unit is a pair of nginx + fpm, and it will scale (if you implement it). It is for this pair that you create a service for the application (and not two services).
So your first option is a working method, but as simple as possible.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question