PHP not starting after nginx in entrypoint

Published

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.

entrypoint.sh

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

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

Any help is appreciated, thank you so much

Source: Docker Questions

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

Answers

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
faq