Tinyfilemanager Docker Compose

version: '3.8'

version: "3.8" services: tinyfilemanager: image: tony2001/tinyfilemanager:latest container_name: tinyfilemanager restart: unless-stopped ports: - "8080:80" environment: - TFM_USERNAME=admin - TFM_PASSWORD=changeme - TFM_ADMIN_NAME=Admin - TFM_LANGUAGE=en - TFM_ALLOW_UPLOAD=1 - TFM_ALLOW_DELETE=1 - TFM_ALLOW_EDIT=1 - TFM_BASE_URL=/ volumes: - ./data:/var/www/html/files - ./config:/var/www/html/config networks: - tfm-net

TinyFileManager relies on a config.php file for advanced settings, user authentication, and access controls. If you do not provide one, the container uses its built-in defaults.

Create a new file named docker-compose.yml and paste the following configuration: tinyfilemanager docker compose

TinyFileManager relies on PHP settings like upload_max_filesize and post_max_size . To increase upload limits, create a custom php.ini :

Keep your host system clean and isolate the web application from your actual file storage.

Exposing a file manager over plain HTTP is dangerous. Anyone on your network can sniff credentials, and browsers will mark your site as insecure. Let's integrate a reverse proxy. version: '3

: The container expects the files it manages to be located at /var/www/html/data inside the container. Ensure your host path in the volumes section is an absolute path for reliability. Custom Configuration :

Then Nextcloud users can manage files via TFM’s interface.

FROM tinyfilemanager/tinyfilemanager:latest RUN apk add --no-cache zip unzip To increase upload limits, create a custom php

Run the following command in your project directory to download the image and start TinyFileManager in detached (background) mode: docker compose up -d Use code with caution. Verify the Container Status Check if the container is running properly: docker compose ps Use code with caution. View Application Logs If you encounter any issues, inspect the container logs: docker compose logs -f tinyfilemanager Use code with caution. Stop the Container

mkdir data

FROM tinyfilemanager/tinyfilemanager:latest

chown -R 82:82 ./data