Tinyfilemanager Docker Compose Link File

version: '3.8' services: tinyfilemanager: image: tinyfilemanager/tinyfilemanager:master container_name: tinyfilemanager ports: - "8080:80" volumes: - ./data:/var/www/html/data # Optional: Mount a custom config.php if you want to change default settings # - ./config.php:/var/www/html/config.php restart: always Use code with caution. Copied to clipboard Key Setup Details

To deploy using Docker Compose, you can use the official image tinyfilemanager/tinyfilemanager . This setup allows you to manage files on your host machine through a lightweight web interface. Docker Compose Configuration

: 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 .

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

Maps the ./data directory on your host to /var/www/html/data inside the container, ensuring all your uploaded files persist even if the container is deleted. environment: Sets the timezone. Step 3: Run Tiny File Manager

Here is a brief example of how to route traffic through an existing reverse proxy configuration block:

volumes: tinyfilemanager_config:

Create .env file:

Create a file named docker-compose.yml and paste the following configuration. This setup uses the official TinyFileManager image from Docker Hub.

If you prefer a more customizable version: version: '3

docker-compose pull docker-compose up -d

If you cannot upload files or edit files, it is usually a permission issue on the host machine. Run this command on your host (inside the tinyfilemanager folder) to allow the container to write to the data folder: