Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

skiab0x's avatar

How to start a cron job in a docker environment

Hello guys. I am running a laradock container on my machine and I have activated 3 services using docker-compose (docker-compose up -d nginx mariadb phpmyadmin). I have created a schedule inside app/Console/Kernel.php

How should I proceed? Does the cron job have to run from nginx or should I run it at docker bash shell? (I connect to it using the following command: docker-compose exec --user=laradock workspace bash)

0 likes
1 reply

Please or to participate in this conversation.