I can upload a file but not delete it.
I have a nginx, laravel, and redis containers.
When I upload my queue create files and folders into /var/www/storage/app/public (laravel container)
This folder is share with the host by a docker volume.
When I try to remove the file and the folder I can't because I don't have permissions...
I tried to change php-fpm user from www-data to root in www.conf I tried to launch supervisord queue process and fpm as root user
www.conf
; Unix user/group of processes
; Note: The user is mandatory. If the group is not set, the default user's group
; will be used.
user = www-data
group = www-data
supervisord.conf
[program:php-fpm]
command=/usr/local/sbin/php-fpm -F
autostart=true
autorestart=true
priority=5
stdout_events_enabled=true
stderr_events_enabled=true
[program:laravel-worker]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/artisan queue:work redis --sleep=3 --tries=3
autostart=true
autorestart=true
user=root
numprocs=8
priority=10
redirect_stderr=true
stdout_logfile=/var/www/storage/logs/worker.log