title: Run PHP script with Docker container
body: <p>I have a setup with <code>docker-compose</code> 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. </p>
  
  <p>How can I run the php scripts using the php7-fpm docker container?</p>
  
  <p>On my old system I had installed php7 so I could setup a cron task like this:</p>
  
  <p><code>0 2     * * *   /usr/bin/php /var/www/page/cron/my_php_script.php &gt;&gt; /var/log/cron.log 2&gt;&amp;1</code></p>