Running 2 Separate Containers Apache-PHP and PHP-FPM

40 Views Asked by At

I've been circling around if it is proper to have this setup

Container1 = Running with Apache + PHP
Container2 = Running with PHP-FPM with index.php (running phpinfo page) on /var/www/html

Then Container1 will have a configuration to forward request to Container2 for fast cgi. Will that be possible? I already did a lot of retries found from online and I for me to view the phpinfo page is I need to place it both of the /var/www/html of container1 and container2.

0

There are 0 best solutions below