Tinyfilemanager Docker Compose |work| Jun 2026
Maps port 8080 on your host machine to port 80 inside the container. You can change 8080 to any available port on your host. volumes:
Before starting, ensure your system has the following tools installed: The containerization platform.
Open your web browser and navigate to:
To change the password and customize settings properly, you need a config.php file. The container will create one automatically if it doesn't exist, but it's better to create a basic one first. Stop the container: docker-compose down
services: tinyfilemanager: image: pritunl/tinyfilemanager:latest container_name: tinyfilemanager restart: unless-stopped expose: - "80" volumes: - ./data:/var/www/html environment: - USERNAME=$TFM_USERNAME - PASSWORD=$TFM_PASSWORD networks: - web tinyfilemanager docker compose
Setting up Tiny File Manager with Docker Compose is a fast, secure way to manage your server files without installing heavy FTP software. The setup provides a persistent, easily accessible web interface for organizing your data. If you'd like, I can:
When using Docker volumes, ensure that file permissions are correctly set. The Nginx-based version allows you to specify the user ID (PUID) and group ID (PGID) to run the container:
: To change the default configuration (like passwords or root paths), you can mount a local config.php file to /var/www/html/config.php . How to run a Docker compose YML file
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 Maps port 8080 on your host machine to
Login with:
# Set proper permissions for the data directory chown -R 33:33 ./data Use code with caution. Conclusion
upload_max_filesize = 2048M post_max_size = 2048M memory_limit = 2048M max_execution_time = 3600
This is the easiest way to get started. It uses the built-in SQLite database and maps a local folder for your files. Open your web browser and navigate to: To
Then mount it into the container:
services: tinyfilemanager: user: "1000:1000"
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.
version: '3' services: tinyfilemanager: image: tinyfilemanager:latest volumes: - ./data:/tinyfilemanager/data ports: - "8080:80"