I would like to deploy php application. For that I use a Procfile like heroku and configure my application to use buildpack. I need some specific php extension like redis that is not in the buildpack default image so my application can’t work because of this missing extension.
First question, how can I specify extensions that I will need ?
If it’s not possible to customise / add some new php extensions I will need to use a Dockerfile. I have already a Dockerfile ready for production that I used for development purpose. This Dockerfile used php-fpm so I need a webserver behind like nginx to handler http requests. With docker compose it works fine, how can I route all my application traffic to an nginx webserver and forward php request to php-fpm container ?
So this is not really a routing because all request received by nginx use fast cgi to forward on php-fpm. Maybe it’s possible with api gateway but it’s seem not so easy has expected
The main problem with that is that I don’t have access to the index.php file that is in the api container. It works with docker-compose because they share the same volume.
Maybe it can work with Dockerfile target feature where I can have the nginx configuration in my php application repository or by sharing the same volume