Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

🐳 Docker container with task scheduler

Notifications You must be signed in to change notification settings

Green-Mod/lumen-task-scheduler

Repository files navigation

🚢 Docker with task scheduler

Introduction

The goal is to create a docker container where various tasks are performed with different frequencies. For example, a task can be to send emails every day or every month, or perform analyzes on the database and extract reports to sent them to the user involved.

Add new task

Within the app/Console/Kernel.php file in the scheduler method it is possible to schedule various tasks with different frequencies.

You can read more details by following this documentation.

Test locally

Create .env file with cp .env.example .env and fill all missing variables.

To test the Docker container just build the image with the following command:

docker build -t [CONTAINER_NAME] .

and launch the image with the following command:

docker run -t -i [CONTAINER_NAME]

Releases

No releases published

Packages

No packages published