PHP not starting after nginx in entrypoint


I am trying to get PHP-fpm to run after nginx runs, but when i try to do so with my code, nginx runs fine but php does not start within docker and i will have to manually start it.

#!/usr/bin/env sh
set -e
nginx -g 'daemon off;'
service php7.4-fpm start

This is run after ENTRYPOINT ["sh","/var/www/html/"]

Any help is appreciated, thank you so much

Source: Docker Questions

Categorised as docker, dockerfile, nginx, php Tagged , , ,


Leave a Reply

Still Have Questions?

Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us