-
Looks great! Very similar to what we are doing. I just recently open-source our production Docker images: https://github.com/serversideup/docker-php/
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
I think I found a decent starting point: https://github.com/TrafeX/docker-php-nginx
-
I then tweaked the nginx configs to point to /public/index.php and added php8-tokenizer to the build. I spun up a fresh install with this image and it seems to be working great. This is my Larvel-ized version: https://github.com/christopherarter/laravel-docker-production
-
The one thing I am working on is swapping out Supervisor for S6. S6 has some better advantages on relaying "process information" to Docker. They also do a good job addressing people so say putting more than one process in a container is not "The Docker Way": https://github.com/just-containers/s6-overlay#the-docker-way
-
Using fastcgi_pass web:9000;, web resolves using the hostfile to the container IP, and 9000 is the FPM port set by the PHP-FPM docker image https://github.com/docker-library/php/blob/master/7.4/buster/fpm/Dockerfile#L258