services: tinyfilemanager: image: tinyfilemanager/tinyfilemanager:latest volumes: - ./php-custom.ini:/usr/local/etc/php/conf.d/custom.ini:ro
as docker-compose.yml
Create a docker-compose.yml file with the following content: tinyfilemanager docker compose
mkdir tinyfilemanager-docker && cd tinyfilemanager-docker touch docker-compose.yml your entire /home )
If you get an error like "The container name '/tinyfilemanager' is already in use by container", you need to stop and remove the existing container first: change the volume mount:
By default, the container serves /var/www/html/ . If you want TFM to manage a different directory (e.g., your entire /home ), change the volume mount: