Tinyfilemanager — Docker Compose [cracked]
environment: - UPLOAD_MAX_SIZE=2G - POST_MAX_SIZE=2G - MEMORY_LIMIT=512M Use code with caution. 2. Managing Existing Host Directories
The application requires no database or complex dependencies, making it extremely easy to deploy and use.
For production environments, always use a reverse proxy with HTTPS. Here's a basic example using Nginx as a reverse proxy:
TinyFileManager allows configuration customization via a config.php file. To customize user credentials, allowed file extensions, or default themes, generate a baseline configuration file. tinyfilemanager docker compose
Open docker-compose.yml and paste the following:
version: '3.8' services: tinyfilemanager: image: tinyfilemanager/tinyfilemanager:latest container_name: tinyfilemanager restart: unless-stopped ports: - "8080:80" volumes: - ./data:/var/www/html/data - ./config.php:/var/www/html/config.php environment: - TZ=UTC Use code with caution. Configuration Breakdown
Fix: Set $root_path = $_SERVER['DOCUMENT_ROOT'].'/data'; in your configuration and mount your data directory to /var/www/html/data . For production environments, always use a reverse proxy
: Copy the above YAML content into a file named docker-compose.yml on your server.
Keep your application secure by using a tool like to automatically pull the latest TinyFileManager image updates, recreate the container, and discard the old image:
services: tinyfilemanager: image: tinyfilemanager/tinyfilemanager:master container_name: tinyfilemanager restart: always ports: - "8080:80" volumes: # Map the host directory you want to manage to the container's data path - /path/to/your/files:/var/www/html/data # Optional: Persistent configuration # - ./config.php:/var/www/html/config.php Use code with caution. Copied to clipboard Open docker-compose
Move your deployment to any server running Docker.
Supports upload, download, zip/unzip, file editing, syntax highlighting, and search.
Locate the $auth_users array. By default, TinyFileManager includes two users ( admin and user ). The passwords are encrypted using PHP's standard password_hash function.
TinyFileManager is a lightweight, web-based file manager application built on PHP. It packs powerful features—like a built-in code editor, multi-user authentication, file compression, and cloud storage integration—into a single file. Deploying TinyFileManager using Docker Compose is the most efficient way to isolate the application, simplify configuration, and ensure consistent behavior across different environments.
: Once running, open your browser and go to http://localhost:8080 .