Tinyfilemanager Docker Compose [OFFICIAL]

Create a file named compose.yaml (or docker-compose.yml ) and paste the following content:

: Force the container to reload the file by restarting it: docker compose restart tinyfilemanager . Maintenance and Lifecyle Commands Stop the Application : docker compose down View Live Logs : docker compose logs -f tinyfilemanager Manual Image Update : docker compose pull docker compose up -d --remove-orphans Use code with caution. Conclusion

services: tinyfilemanager: image: moonbuggy2000/tinyfilemanager:latest container_name: tinyfilemanager restart: always ports: - "8080:8080" # Web UI - "8081:8081" # Direct file access (optional) volumes: - ./files:/var/www/html/files environment: - PUID=1000 - PGID=1000 - TZ=America/New_York

If you're searching for a lightweight, web-based file manager that works seamlessly within a Dockerized environment, ⁠Tiny File Manager is an excellent choice. It’s a single-file PHP application that allows you to manage, edit, and upload files directly from your browser. By using , you can deploy this robust tool in minutes.

First, download the official config.php from the project's GitHub repository and place it in your project directory. Then, modify the file to suit your needs. For instance, to change the default file upload size limit, you would edit the $max_upload_size_bytes variable. To change the root directory that the file manager can access, you would modify the $root_path variable. tinyfilemanager docker compose

This allows Traefik to automatically route traffic to your TinyFileManager container, handling SSL certificates and load balancing.

version: '3.8'

Your lightweight file cloud is now ready. Happy self-hosting!

This comprehensive guide covers everything you need to set up, configure, and secure TinyFileManager using Docker and Docker Compose. Prerequisites Create a file named compose

TinyFileManager is a web-based file manager [1]. It is light, fast, and packed with features [1]. It runs inside a single PHP file [1]. You can manage files through any web browser [1]. It supports uploading, editing, zip creation, and multi-language interfaces [1].

: Non-root user with sudo privileges configured to run Docker commands. Step 1: Directory and File Structure

To bind only to localhost, modify the ports section in your docker-compose.yml :

Configuration can be managed through environment variables or a custom config.php Docker Hub Default Credentials : The initial login is admin/admin@123 user/12345 Environment Variables : Specific images (like moonbuggy2000/tinyfilemanager ) allow wildcard parameters starting with to override config.php settings directly in the Compose file. Custom Settings : You can mount a local config.php It’s a single-file PHP application that allows you

A directory on your host machine to store the files you want to manage. Docker Compose Configuration Create a file named docker-compose.yaml and paste the following configuration: tinyfilemanager tinyfilemanager/tinyfilemanager container_name : tinyfilemanager : - . :/var/www/html/data - . /config.php :/var/www/html/config.php environment

~/tinyfilemanager : The root directory for configuration files.

Before we start, ensure you have the following: