How to configure docker to use apache and php in separate containers

I need to configure a specific LAMP environment using docker using:

  • debian squeeze 6.0.10
  • apache 2
  • php 5.6
  • mysql 5.5

with the application code hosted on the base image with debian + apache, I wonder if it is possible to use a php container instead of the standard php server installed on the debian container (witch is 5.3) in the same way as with the mysql container.

here is a small image that better explains what the idea is

fEQFp.png

is it possible?

Thanks!

Update

After some research, I think this is not possible if you do not configure php as a cgi module, not even for a modular configuration.

, , , , , .

+4
2

, MySQL php.

.

:

docker run --name db mysql
docker run --link db php:5.4
docker run --link db php:5.6

mysql php .

?

+1

Source: https://habr.com/ru/post/1611913/


All Articles