wyveo / nginx-php-fpm

Nginx + PHP-FPM 8.2.x / 8.1.x / 8.0.x / 7.4.x / 7.3.x / 7.2.x / 7.1.x / 7.0.x + Composer built on Debian (Bullseye/Buster) image
https://hub.docker.com/r/wyveo/nginx-php-fpm
MIT License
342 stars 245 forks source link

Why are we using supervisord? #41

Closed simplenotezy closed 2 years ago

simplenotezy commented 2 years ago

I notice you're trying to run nginx and php-fpm under supervisord - which makes little sense.

nginx and php-fpm already do what supervisord does - or am I missing something?

ww9 commented 2 years ago

Hi! Docker can only have one main process called ENTRYPOINT.

So if we want to run multiple processes in a single container it is convenient to use a process manager such as supervisord.

I hope that answers your question.