I am trying to run a few commands in my own Nginx container I create from a compose yml file.
Basically, I do the tail -f command simply to keep the container running. And then I also want to start the Nginx and php-fpm service.
My compose file only seems to run the tail -f command, and the start nginx and php-fpm commands dont seem to run. I always have to exec into the container and run those commands manually myself.
Compose yml file:
command: tail -f /dev/null && service nginx start && service php7.3-fpm start
Can you please let me know the correct way to do this or alternative way?