Compose | Tinyfilemanager Docker

TinyFileManager with Docker Compose — Quick Guide

TinyFileManager is a lightweight, single-file PHP file manager. Below is a concise Docker Compose setup and usage notes to run TinyFileManager quickly and securely.

Security Warning: Only enable the terminal if you absolutely trust all users who have the TFM password. The terminal runs as www-data inside the container. To make it useful, you may need additional tools (apt-get install -y vim git) – but this requires building a custom Dockerfile. tinyfilemanager docker compose

networks: filemanager-net: driver: bridge

Deploy by Docker · prasathmani/tinyfilemanager Wiki - GitHub Easy management: They could start, stop, and restart

$auth_users = array(
    'admin' => '$2y$10$YourHashedPasswordHere',  // Use password_hash()
    'editor' => '$2y$10$AnotherHash'
);
  • Easy management: They could start, stop, and restart both services with a single command.
  • Isolation: Each service was isolated from the other, improving security and reducing dependencies.
  • Persistence: They could persist data between container restarts by mounting a local directory to the tinyfilemanager service.

# Mount the folder you want to manage to /var/www/html/data inside the container /path/to/your/files :/var/www/html/data Easy management: They could start