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

Latest commit

 

History

History
27 lines (16 loc) · 920 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 920 Bytes

🚢 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]