E
E
Evgeny Lavrenov2018-12-20 22:57:08
Docker
Evgeny Lavrenov, 2018-12-20 22:57:08

How to organize multiple Docker projects with different versions of PHP-Apache?

How to organize multiple Docker projects with different versions of PHP-Apache? On one, the php:7.2.12-apache image, on the other, the php:5.6-apache image, while they communicate with the servers through port 80. But the second one does not start on the same port, because it is busy. And if you do it on a different port, for example 81, then the site will come off at localhost: 81, but you need to do it without specifying the port. What is the best way to do this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumov, 2018-12-20
@lavr_evgeny

Run them on different ports and run them through the third one, which uses them as a backend

S
Sanes, 2018-12-20
@Sanes

What's wrong with Apache PHP-FPM or FastCGI?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question