Tinyfilemanager Docker Compose Jun 2026
./data:/var/www/html/data : Mounts a local data directory to store uploaded files.
Create a docker-compose.yml file with the following content:
The container's web server user ( www-data ) does not have write access to the host folder mounted to /var/www/html/data .
A Linux-based server (e.g., Ubuntu, Debian, CentOS) or a local development environment. Engine installed and running. Docker Compose plugin installed. Step-by-Step Deployment Guide 1. Project Directory Setup tinyfilemanager docker compose
Using Docker Compose simplifies deployment by defining your configuration in a single .yml file. This approach offers:
$theme = 'bootstrap5'; $upload_max_size = 100 * 1024 * 1024; // 100MB
Managing files on a server doesn't always require a heavy, complex solution like Nextcloud or OwnCloud. For many, a lightweight, web-based file manager is sufficient. is an excellent, open-source PHP-based file manager that is fast, secure, and incredibly easy to set up. Engine installed and running
<?php // Custom configuration $auth_users = array( 'admin' => '$2y$10$YourHashedPasswordHere', // Use password_hash() 'guest' => '$2y$10$GuestHashedPassword' );
Add the following minimal security configuration, replacing the hashes with the one you generated:
This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later. check if they support it
Because TinyFileManager handles direct file uploads and management, security is paramount. Implement the following adjustments before exposing the service to the internet: 1. Restrict File Permissions
Make sure $use_auth is set to true in your configuration. Never run TinyFileManager without authentication in a production environment.
: If you need uploaded files to be owned by your host user, run the container with a specific UID/GID. Many images allow PUID and PGID environment variables. For tinyfilemanager/tinyfilemanager , check if they support it; otherwise, you may need to build a custom image.
Once the container is running, open your web browser and go to http://localhost:8080 . You will see the TinyFile Manager login screen. Use the default credentials to log in: