I have a setup with docker-compose using nginx with php7-fpm. This is running and my PHP page is working fine. Now I need to execute some php scripts in a Cron Job, but I do not want to install php on the host machine, where I plan to install the Cron Jobs.
How can I run the php scripts using the php7-fpm docker container?
On my old system I had installed php7 so I could setup a cron task like this:
0 2 * * * /usr/bin/php /var/www/page/cron/my_php_script.php >> /var/log/cron.log 2>&1