---
title: 'How to install FileBrowser in Docker | Zomro'
description: 'FileBrowser provides a file management interface on your server. A good alternative to file managers like FileZilla, WinSCP, etc.'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669736570_1.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to install FileBrowser in Docker 



# How to install FileBrowser in Docker

28-11-2022

FileBrowser provides a file management interface on your server. A good replacement for file managers like FileZilla, WinSCP, etc. It can be used to upload, delete, preview, rename, and edit various files. There is also the ability to create users and assign them permissions. Create temporary links to files or folders.  
  
In this article, we will look at how to install it in a Docker container, using docker-compose as well.  


## **Installing Docker.**

But first, we need to update the OS packages.   

    
    
    apt update

  
We will install the necessary packages and add a new repository:
    
    
    apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common
    
    curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
    
    add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

  
We will update the packages with the new repository:
    
    
    apt update

  
Now we will install Docker itself.
    
    
    apt-get install docker-ce docker-ce-cli containerd.io

  
Check the version:
    
    
    docker --version

  
![How to install FileBrowser in Docker](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669736570_1.png)

Check the status:
    
    
    systemctl status docker

  
![How to install FileBrowser in Docker-1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669736593_2.png)

If it hasn't started, we start it:
    
    
    systemctl start docker
    

  
And add it to autostart.
    
    
    systemctl enable docker
    

  
![How to install FileBrowser in Docker-2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669736594_4.png)

## **Installing Docker-Compose**

For this project, version 1.25 will be sufficient.   

    
    
    curl -L "https://github.com/docker/compose/releases/download/1.25.5/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
    

  
Set execution permissions. 
    
    
    chmod +x /usr/local/bin/docker-compose
    

  
Check how Docker-Compose was installed:
    
    
    docker-compose --version
    

  
![How to install FileBrowser in Docker-3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669740139_5.png)  
  
Add the Linux user to the **docker** group:
    
    
    usermod -aG docker $USER
    

  
Create a ***.yaml** file for Docker-Compose.  
  
To keep track of what we have installed in the future, let's create a separate folder for this project in the **/home** directory and navigate to it.
    
    
    mkdir /home/filebrowser && cd /home/filebrowser

You can also use another directory**** to place this and other projects.   
  
We will use the repository to create the **docker-compose.yaml** file at the link <https://hub.docker.com/r/filebrowser/filebrowser>  
  
Create a file **docker-compose.yaml** or **docker-compose.yml** ,
    
    
    vim docker-compose.yaml
    

And add the following code to it:
    
    
    version: '3.3'
    services:
        filebrowser:
            container_name: filebrowser
            volumes:
            - /:/srv
            - /root/filebrowser/datbase/filebrowser.db:/database/filebrowser.db
            environment:
            - PUID=0
            - PGID=0
            ports:
            - 9090:80
            restart: always
            image: filebrowser/filebrowser:s6

  
Where:  
  
**container_name** : the name of your container;  
In the **volumes** block, specify the paths where the database will be saved and the folder with files. In this example, **/** (root) is specified, which allows access to all files on the server.   
**ports** : 9090 - the port through which the manager panel will be accessed.  
  
  
Also, before starting **docker-compose** , create a file for the database **filebrowser.db** at the path specified in **volumes** \- **/root/filebrowser/database/**  
If this is not done, we will see an error in the logs: **filebrowser.db is a directory.**  
  
Run the script (you need to be in the directory where our file was created. In this case, it is **/home/filebrowser/**):
    
    
    docker-compose up -d 
    

Wait for the images to download and deploy.  
  
Check:
    
    
    docker-compose ps
    

or 
    
    
    docker ps
    

  
![How to install FileBrowser in Docker-5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669819757_screenshot_9.png)  
You can also install FileBrowser with a single command without using **docker compose.**
    
    
    docker run -v /:/srv -v /root/filebrowser/datbase/filebrowser.db:/database/filebrowser.db -e PUID=0 -e PGID=0 -p 9090:80 -d filebrowser/filebrowser:s6

  
To view the logs, use the command 
    
    
    docker logs -f filebrowser
    

  
![How to install FileBrowser in Docker-6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669818673_screenshot_7.png)  


Now you can use your server's IP and the port you specified, in this case, 9090, to connect to the web interface.   
  
For authorization use:  
login: admin  
password: admin  
  
  
![How to install FileBrowser in Docker-7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48@server-panel.net/2022/11/01/1669819043_screenshot_8.png)  
  


Enjoy using it.   
  
We also suggest considering other useful articles:

  * [How to copy data from the host to Docker and from Docker to the host](https://zomro.com/blog/faq/284-kak-skopirovat-dannye-s-hosta-v-docker-i-iz-docker-na-host)
  * [Updating/Downgrading PHP versions on Ubuntu](https://zomro.com/blog/faq/436-updatingdowngrading-php-versions-on-ubuntu)
  * [Basics of working with the screen utility](https://zomro.com/blog/faq/295-rabota-s-utilitoj-screen)



Similar articles:

[Cleaning up old logs and temporary files on Linux servers](https://zomro.com/blog/faq/371-cleaning-up-old-logs-and-temporary-files-on-linux-servers) [How to install Django on CentOS 7: A Step-by-Step Guide](https://zomro.com/blog/faq/444-how-to-install-django-on-centos-7) [cPanel File Manager](https://zomro.com/blog/faq/177-menedzher-fajlov-cpanel) [How to connect to a server via FTP, SFTP, and SCP](https://zomro.com/blog/faq/687-how-to-connect-to-a-server-via-ftp-sftp-and-scp) [Introduction to CI/CD: Analysis of Development Methodology](https://zomro.com/blog/faq/437-znakomstvo-s-cicd-analiz-metodologii-razrabotki)

[ Forex Server from €7.95/mon ](/server-for-forex)
