25.18.12
This website uses cookies to ensure you get the best experience on our website. Learn more

Tinyfilemanager Docker Compose |verified| Jun 2026

Adjust the ownership of the host folder by running sudo chown -R 33:33 ./data . Issue: Large file uploads fail

For production environments, always use a reverse proxy with HTTPS. Here's a basic example using Nginx as a reverse proxy: tinyfilemanager docker compose

'$2y$10$YourGeneratedAdminHashHere', 'manager' => '$2y$10$YourGeneratedUserHashHere' ); // Read-only users mapping $read_only_users = array( 'manager' ); // Disallow direct editing of critical system extensions $allowed_file_extensions = ''; // Empty means all allowed $allowed_upload_extensions = 'jpg,jpeg,png,gif,pdf,zip,tar,gz,mp4,txt,doc,docx,xls,xlsx'; Use code with caution. Launching the Infrastructure Adjust the ownership of the host folder by

To get started, create a new directory for your project and add a docker-compose.yml file with the following content: Launching the Infrastructure To get started, create a

The -d flag runs the container in detached mode, meaning it runs in the background.

For complete control over user roles, explicit folder permissions, and advanced configurations, you should download the default config.php file from the official TinyFileManager repository and place it in your project root. Modify the config.php file to define custom user arrays:

The official Docker image includes a config.php file that controls many aspects of TFM's behavior, including authentication, file upload limits, and root directories.