File Browser
Web-based file manager with media preview.
Overview
File Browser is a modern, web-based file management application written in Go that transforms any server directory into a beautiful, feature-rich web interface. Originally created as a lightweight alternative to complex file management systems, it provides an intuitive way to browse, upload, download, and manage files through any web browser, complete with built-in media preview capabilities for images, videos, audio files, and documents. File Browser stands out for its simplicity and zero-dependency approach, requiring no complex setup or additional services to function effectively.
This Docker deployment creates a self-contained file management system that exposes your server's file system through a secure web interface on port 8080. File Browser handles all file operations internally, from basic CRUD operations to advanced features like public link sharing and command execution, while maintaining a persistent SQLite database to store user configurations, permissions, and sharing settings. The containerized approach ensures consistent behavior while keeping your host system clean and manageable.
This setup is ideal for home lab enthusiasts who need remote file access, small teams requiring collaborative file sharing, content creators managing media libraries, and system administrators who want to provide controlled file access to users without SSH privileges. File Browser's user management system allows you to create multiple accounts with scoped directory access, making it perfect for multi-tenant environments where different users need access to different portions of your file system.
Key Features
- Built-in media preview for images, videos, audio files, and PDF documents without external plugins
- Multi-user support with granular directory-based permissions and access control
- Public link sharing with optional password protection and expiration dates
- Drag-and-drop file uploads with progress tracking and batch operations
- Command runner functionality to execute custom scripts on selected files
- Full-text search across filenames with filtering by file type and modification date
- Mobile-responsive interface optimized for smartphones and tablets
- Single binary deployment with embedded web assets and SQLite database storage
Common Use Cases
- 1Personal cloud storage replacement for accessing home files remotely via web browser
- 2Media server frontend for browsing and streaming video/audio collections with built-in previews
- 3Team file sharing hub for small businesses without complex enterprise solutions
- 4Photography workflow management with high-resolution image preview and organization
- 5Development project file access for remote teams working on shared codebases
- 6Educational institutions providing students controlled access to course materials and submission folders
- 7Content creation studios managing large media asset libraries with collaborative access
Prerequisites
- Docker and Docker Compose installed with at least 512MB available RAM
- Port 8080 available and accessible from your network or internet if remote access needed
- Read/write permissions on the host directory you want to expose through File Browser
- Basic understanding of file permissions and user management concepts
- Web browser with JavaScript enabled for full interface functionality
- Consider firewall configuration if allowing external access beyond local network
For development & testing. Review security settings, change default credentials, and test thoroughly before production use. See Terms
docker-compose.yml
docker-compose.yml
1services: 2 filebrowser: 3 image: filebrowser/filebrowser:latest4 container_name: filebrowser5 restart: unless-stopped6 ports: 7 - "8080:80"8 volumes: 9 - /path/to/files:/srv10 - filebrowser_db:/database11 environment: 12 FB_DATABASE: /database/filebrowser.db13 FB_ROOT: /srv14 FB_LOG: stdout15 FB_NOAUTH: "false"1617volumes: 18 filebrowser_db: .env Template
.env
1# Configure your files pathUsage Notes
- 1Docs: https://filebrowser.org/
- 2Access at http://localhost:8080 - default login: admin/admin
- 3Built-in viewers for images, video, audio, and documents
- 4Create users with scoped access to specific directories
- 5File upload, download, sharing via public links
- 6Command runner executes scripts on files (enable in settings)
Quick Start
terminal
1# 1. Create the compose file2cat > docker-compose.yml << 'EOF'3services:4 filebrowser:5 image: filebrowser/filebrowser:latest6 container_name: filebrowser7 restart: unless-stopped8 ports:9 - "8080:80"10 volumes:11 - /path/to/files:/srv12 - filebrowser_db:/database13 environment:14 FB_DATABASE: /database/filebrowser.db15 FB_ROOT: /srv16 FB_LOG: stdout17 FB_NOAUTH: "false"1819volumes:20 filebrowser_db:21EOF2223# 2. Create the .env file24cat > .env << 'EOF'25# Configure your files path26EOF2728# 3. Start the services29docker compose up -d3031# 4. View logs32docker compose logs -fOne-Liner
Run this command to download and set up the recipe in one step:
terminal
1curl -fsSL https://docker.recipes/api/recipes/filebrowser/run | bashTroubleshooting
- Permission denied errors accessing files: Ensure the container has proper read/write permissions on the mounted volume path
- Default admin/admin login not working: Check container logs for database initialization errors and verify the database volume is properly mounted
- Files not appearing in web interface: Verify the FB_ROOT environment variable points to the correct internal container path (/srv)
- Upload failures for large files: Check available disk space on both host system and Docker volume storage location
- Command runner not executing scripts: Enable the feature in settings and ensure scripts have proper execute permissions on the host system
- Unable to access on port 8080: Verify no other services are using the port and check Docker port mapping configuration
Community Notes
Loading...
Loading notes...
Download Recipe Kit
Get all files in a ready-to-deploy package
Includes docker-compose.yml, .env template, README, and license
Ad Space
Shortcuts: C CopyF FavoriteD Download