Docker Compose — Tinyfilemanager

By default, TinyFileManager includes pre-configured administrative accounts. For security compliance, you must generate a unique config.php file to override default credentials before spinning up the container.

docker --version docker compose version

Replace the default hashes in config.php with your newly generated strings. Save and close the file ( Ctrl+O , Enter , Ctrl+X ). Step 4: Launch the Container

TinyFileManager was originally based on the popular filemanager project by Alexandre T. It is distributed as a single file, tinyfilemanager.php . You drop it into a web directory, and instantly you have a file explorer. tinyfilemanager docker compose

networks: traefik-network: external: true

You do not need to install PHP or Apache on your host machine.

Streamlining Your Server: Deploying TinyFileManager with Docker Compose Save and close the file ( Ctrl+O , Enter , Ctrl+X )

Download the official default configuration file, or create one manually: touch config.php Use code with caution.

To get started, create a new directory for your project and add a docker-compose.yml file with the following content:

By using Docker Compose, the team achieved several benefits: You drop it into a web directory, and

$auth_users = [ 'admin' => '$2y$10$YourHashedPasswordHere', 'editor' => '$2y$10$AnotherHashedPasswordHere', ];

The volumes section is critical for data persistence and customization:

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.

services: tinyfilemanager: image: moonbuggy2000/tinyfilemanager:latest environment: - TFM_HTTP_HOST='yourdomain.com' - TFM_USE_AUTH=true

Docker Engine is installed on your server or local machine. Docker Compose Installed: Docker Compose is installed. A Directory: A dedicated folder for your project files. Step 1: Create the Project Directory

;