Closed WillyReyno closed 2 years ago
Hello Willy. root it's the only one user who exist in any case so it's easier like that. And it's on documentation :
# configure the user that will run cron (defaults to root)
CRON_USER=root
In addition, it's will be a breaking change if we change that. If you want, we can speak about that for a V5 (but the most secure way maybe to generate an error when no cron user was specified).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please update it if any action still required.
This issue has been automatically closed because it has not had recent activity. Please, reopen if you need.
Expected Behavior / Current Behavior
When
CRON_USER
variable is not set in the docker-compose file, it automatically fallbacks toroot
, where we should expect it to fall back to the current user and not root.Steps to Reproduce (for bugs)
CRON_USER
in your docker-composeContext
I deployed a Laravel app recently, where an exception was triggered regularly and creating the logs file by default. That's when I noticed the log files were owned by root instead of the container user.