Tinyfilemanager Docker Compose -
Mount Nextcloud’s data directory into TFM:
volumes:
- nextcloud_data:/var/www/html/data/nextcloud
Then Nextcloud users can manage files via TFM’s interface.
You have just built a production-grade, lightweight, and highly customizable file management system using TinyFile Manager and Docker Compose. This stack consumes less than 50MB of RAM, starts in milliseconds, and provides a far superior experience to FTP clients or raw command-line file operations.
Key takeaways:
Whether you are a sysadmin managing a fleet of servers, a developer needing a quick file editor, or a home user building a private cloud, TinyFile Manager, wrapped in Docker Compose, offers the perfect balance of simplicity and power.
Next Steps:
Your lightweight file cloud is now ready. Happy self-hosting!
Streamlining Your Server: Deploying TinyFileManager with Docker Compose
If you’ve ever needed a quick, lightweight way to manage server files through a web browser without the bloat of a full-blown OS, TinyFileManager is your answer. It’s a single-file PHP application that packs a punch with features like a built-in code editor, multi-user support, and direct file uploads.
Deploying it via Docker Compose is the most efficient way to keep your environment clean and your configuration portable. Here is how to get it running in minutes. Why TinyFileManager?
TinyFileManager is ideal for home labs or small web servers because it is: Ultralight: Runs on PHP 5.5+ and uses minimal resources. tinyfilemanager docker compose
Feature-Rich: Includes the Cloud9 IDE for editing 150+ languages directly in-browser.
Secure: Supports encrypted passwords, session-based access, and IP whitelisting. Responsive: Works perfectly on mobile and touch devices. The Docker Compose Setup
Using Docker Compose avoids long, messy docker run commands and ensures your file storage persists even if you update the container. 1. Create Your Project Directory First, set up a dedicated folder for your project. mkdir tinyfilemanager && cd tinyfilemanager Use code with caution. Copied to clipboard 2. Create the docker-compose.yml File
Create a file named docker-compose.yml and paste the following configuration:
services: tinyfilemanager: image: tinyfilemanager/tinyfilemanager:master container_name: tinyfilemanager restart: always ports: - "8080:80" volumes: # Map your host's data folder to the container's data path - ./data:/var/www/html/data # (Optional) Map a custom config file # - ./config.php:/var/www/html/config.php Use code with caution. Copied to clipboard Mount Nextcloud’s data directory into TFM: volumes: -
Deploy by Docker · prasathmani/tinyfilemanager Wiki - GitHub
| Variable | Description | Default | |----------|-------------|---------| | USERNAME | Login username | admin | | PASSWORD | Login password | admin123 | | TZ | Timezone | UTC | | MAX_UPLOAD_SIZE | Max file upload size | 100M | | THEME | UI theme (light/dark) | light |
Add a backup service (e.g., restic, duplicati) to the same compose file that backs up ./data to S3 or another location.
Open your browser and navigate to: http://localhost:8080
Login with: