Tinyfilemanager Docker Compose [cracked]

To get TinyFileManager running with Docker Compose, you can use a single configuration file to manage the container, ports, and file storage. Since TinyFileManager is a single-file PHP application, it is highly efficient and requires no complex dependencies or databases. TinyFileManager Docker Compose Configuration

You can use the official image prasathmani/tinyfilemanager. Save the following as docker-compose.yml:

services: tinyfilemanager: image: prasathmani/tinyfilemanager:master container_name: tinyfilemanager restart: always ports: - "80:80" volumes: # Map a local folder to the manager's data directory - /absolute/path/to/your/files:/var/www/html/data Use code with caution. Copied to clipboard Key Setup Details

Image: The standard image uses PHP's built-in web server. If you need better performance for production, community images like moonbuggy2000/tinyfilemanager include Nginx and PHP-FPM. tinyfilemanager docker compose

Volume Mapping: Crucial for persistence. Replace /absolute/path/to/your/files with the path on your host machine where you want your files stored.

Authentication: By default, TinyFileManager uses basic authentication. Default Admin: admin / admin@123 Default User: user / 12345

Customization: To override settings without rebuilding, you can mount a custom config.php file into the container. Quick Deployment moonbuggy2000/tinyfilemanager - Docker Image To get TinyFileManager running with Docker Compose ,

docker-compose.yml

version: "3.8"
services:
  tinyfilemanager:
    image: tony2001/tinyfilemanager:latest
    container_name: tinyfilemanager
    restart: unless-stopped
    ports:
      - "8080:80"
    environment:
      - TFM_USERNAME=admin
      - TFM_PASSWORD=changeme
      - TFM_ADMIN_NAME=Admin
      - TFM_LANGUAGE=en
      - TFM_ALLOW_UPLOAD=1
      - TFM_ALLOW_DELETE=1
      - TFM_ALLOW_EDIT=1
      - TFM_BASE_URL=/
    volumes:
      - ./data:/var/www/html/files
      - ./config:/var/www/html/config
    networks:
      - tfm-net
networks:
  tfm-net:
    driver: bridge

Restore data

tar -xzf tinyfilemanager-backup.tar.gz
docker-compose restart

Key Features

  • Intuitive Interface – Split-pane layout (left = directory tree, right = file contents) reminiscent of classic FTP clients.
  • File Operations – Upload, download, copy, move, rename, delete, and edit text files directly in the browser.
  • Archive Support – Create and extract ZIP, TAR, GZ, BZIP2, and 7z archives.
  • Code Highlighting – Syntax highlighting for PHP, HTML, JS, CSS, Python, Ruby, and more.
  • Mobile Responsive – Works perfectly on phones and tablets.
  • Multi-User Support – Simple authentication system with two user roles: admin and user.
  • File Permissions – Change ownership and chmod values via the interface.
  • Search – Recursive filename and content search.

Introduction: The Need for a Lightweight File Manager

In the world of system administration and web development, we often face a common problem: you need to upload, download, edit, or manage files on a remote server, but you only have SSH access (or worse, no direct access at all). While command-line tools like scp, rsync, or sftp are powerful, they lack the visual immediacy of a Graphical User Interface (GUI).

Enter TinyFileManager (TFM). This single PHP file (weighing just around 150KB) provides a full-featured, responsive, and secure web-based file manager. It allows you to browse, edit, copy, move, upload, archive, and even protect directories with passwords—all from your browser.

However, running PHP applications natively on a server can lead to dependency hell, version conflicts, and security headaches. This is where Docker and Docker Compose shine. By containerizing TinyFileManager, you get a portable, isolated, and easily deployable file manager that can run on any Linux, Windows, or macOS system with Docker installed. Restore data tar -xzf tinyfilemanager-backup

In this comprehensive guide, we will explore:

  • What TinyFileManager is and its key features.
  • Why Docker Compose is the ideal deployment method.
  • Step-by-step setup with a production-ready docker-compose.yml.
  • Advanced configurations (themes, authentication, upload limits).
  • Security best practices.
  • Integration with other containers (Nextcloud, Nginx, etc.).
  • Troubleshooting common issues.

7.1 TFM + Nextcloud (as external storage)

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.

/* */