Closed krufab closed 4 years ago
The files shall not be owned by www-data because that'll make them writeable for the webserver which imposes a security risk. I agree that this may cause problems for the ´logs´ directory which may be the exception for a ownership change. However, logs from a Docker image should go to stdout which is what the current entrypoint configures by default: $config['log_driver'] = 'stdout'
.
Ok, valid point. I needed the logs folder writable as i was debugging my configuration. Nevertheless, similar images, like postfixadmin / phpmyadmin, have the source code in /var/www/html belonging to www-data...
The roundcubemail source files extracted and copied to /var/www/html belong to the wrong user/group instead to www-data. This causes issues when roundcubemail is set to write logs in the default /var/www/html/logs folder as www-data has no write permissions.