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

i need to setup a particular LAMP environment using docker, with :

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

having app code hosted on a base image with debian + apache, i wonder if it’s possibile to use a php container instead default php server installed on debian container ( witch is 5.3 ) in the same way i do with mysql container.

here is a small image that better explain what is the idea:

is it possibile?