Skip to content

CRON_USER variable defaults to root when not set #297

@WillyReyno

Description

@WillyReyno

Expected Behavior / Current Behavior

When CRON_USER variable is not set in the docker-compose file, it automatically fallbacks to root, where we should expect it to fall back to the current user and not root.

Steps to Reproduce (for bugs)

  1. Don't define a CRON_USER in your docker-compose
  2. Notice that all CRON tasks are run as root

Context

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions