Skip to content

Docker image to run PHP scripts using a cron schedule

License

Notifications You must be signed in to change notification settings

MartinH80/cronphp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cronphp

Docker image to run PHP scripts using a cron schedule. Send errors through e-mail.

When do you need this?

When you want your PHP scripts to be executed running a cron schedule from a docker container and you want to be informed of any errors via e-mail.

I have several PHP scripts that retrieve data from API's and write the results to an influxdb. I use Grafana to visualise the data. I want to run these every couple of minutes using as little resources as possible.

As I could not find a solution to be available and well maintained, I decided to make my own. This is also a nice learning opportunity to get more familiar with building container images and using github actions to build and publish them to Docker hub.

What is in this repo?

It is just a dockerfile that builds an image and publishes it to dockerhub.

Where do I find the container image?

It is all on dockerhub: cronphp

Where can I find the usage documentation?

This is all on dockerhub: cronphp

I have a question, problem or need another package to be included, how do I contact you?

Please create an issue in this repository.