---
title: 'How to Install FileGator Manager Files in Docker | Zomro'
description: 'Before you get started, you should install Docker and Docker Compose. For your convenience, we have provided instructions for'
image: 'https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/01_XzW1Ucq.png'
---

![opened image]()

  * [Zomro](https://zomro.com/)
  * [FAQ](https://zomro.com/blog/faq/)
  * How to Install FileGator Manager Files in Docker 



# How to Install FileGator Manager Files in Docker

29-08-2023

Before you get started, you should install Docker and Docker Compose. For your convenience, we've provided OS-specific instructions for installing Docker on our page for Centos 7 or Ubuntu 20.04.

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

Assign permissions to execute:
    
    
     chmod +x /usr/local/bin/docker-compose

After installation, check the version of Docker-Compose:
    
    
    
     
    
    
     docker-compose --version

![How to Install FileGator Manager Files in Docker - 1](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/01_XzW1Ucq.png)

Preparing the Docker Compose configuration: To deploy Filegator using Docker Compose, create a docker-compose.yaml file in the main directory of your project that will contain the parameters for the filegator container.

For ease of organization, let's create a special directory for this project:
    
    
     mkdir /home/filegator && cd /home/filegator

![How to Install FileGator Manager Files in Docker - 2](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/02_PmyLXA0.png)

If it's more convenient for you, you can choose another location to post this and your other projects.

Use the following repository to get the docker-compose.yaml file: <https://hub.docker.com/r/filegator/filegator>.

Create a file ***.yaml** for Docker-Compose:
    
    
     version: '2' services: filegator: container_name: filegator image: filegator/filegator restart: always ports: - "8080:8080" volumes: # common mount points are listed here # make sure filegator can read/write to the mounted volume
    
          # mount local folder as a repository - ./files:/var/www/filegator/repository
    
          # locally stored users.json file # - ./users.json:/var/www/filegator/private/users.json
    
          # load your own custom configuration file # - ./configuration.php:/var/www/filegator/configuration.php 

![How to Install FileGator Manager Files in Docker - 3](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/03_vtQSL5W.png)

  1. `services:`: This is the primary key that points to the services that will run using this configuration.

  2. `filegator:`: This is the name of the service. You can name your services whatever you want, but here it is named "filegator".

  3. `container_name: filegator`: This specifies the name of the Docker container that will be created. If you do not specify this name, Docker will automatically generate a unique name for the container.

  4. `image: filegator/filegator`: This is the Docker image that will be used to create the container. This image is located on Docker Hub under the name "filegator/filegator".

  5. `restart: always`: This directive tells Docker to restart the container whenever it stops. This can be useful if you want your service to be available at all times.

  6. `ports:`: These are the ports that will be forwarded from the container to the host machine.

     * `"8080:8080"`: The host's port 8080 will be forwarded to port 8080 in the container.
  7. `volumes:`: Describes the volumes or folders that will be forwarded from the host system to the container.

     * `./files:/var/www/filegator/repository`: The local folder "files" (located next to the docker-compose file) will be thrown into the container as `/var/www/filegator/repository`.
     * `./users.json:/var/www/filegator/private/users.json`: This line is commented out, but if uncommented, the local file `users.json` will be available in the container as `/var/www/filegator/private/users.json`.
     * `./configuration.php:/var/www/filegator/configuration.php`: This is also commented out, but if activated will throw `configuration.php` into the container.



Starting and installing Filegator

Now that we have the file **docker-compose.yaml** , and we can start the Filegator container using the command:
    
    
     docker-compose up -d

![How to Install FileGator Manager Files in Docker - 4](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/04_5PzDhAd.png)

This command initiates the Filegator container and runs in the background thanks to the -d parameter. Using instructions from the docker-compose.yaml file, Docker Compose automates the process of loading and initializing the Filegator container.

![How to Install FileGator Manager Files in Docker - 5](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/05_n3ZfBx4.png)

To verify that the Filegator container is active, apply the following command:
    
    
     docker ps | grep filegator

![How to Install FileGator Manager Files in Docker - 6](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/01/08_VNLXvmb.png)

**Closure**

At this point, Filegator has been successfully integrated and configured in Docker. To get to the Filegator workspace, open a browser and go to http://your_domain_or_ip/filegator. 

Login and password: **admin:admin123**

![How to Install FileGator Manager Files in Docker - 7](https://dx86q6oq7ry0e.cloudfront.net/uploads/media/blog/a48%40server-panel.net/2023/09/03/screenshot_33_5NODHck.png)

If you received an error:
    
    
     Folder not writable: /repository/

Give permissions to the folder:
    
    
     chmod -R 777 ./files

Similar articles:

[Site transfer on servers with VestaCP panel](https://zomro.com/blog/faq/384-site-transfer-on-servers-with-vestacp-panel) [Connecting via mstsc.exe with the /admin parameter: what you need to know](https://zomro.com/blog/faq/469-connecting-via-mstscexe-with-the-admin-parameter-what-you-need-to-know) [Installing the Pterodactyl Control Panel (Ubuntu)](https://zomro.com/blog/faq/358-installing-the-pterodactyl-control-panel-ubuntu) [How to enable sound on VPS with Windows Server 2012, 2016, 2019](https://zomro.com/blog/faq/269-kak-vkljuchit-zvuk-na-vps-s-windows-server-2012-2016-2019) [How to order a virtual server in the new billing system](https://zomro.com/blog/faq/229-kak-zakazat-server-v-novom-billinge)

[ GPU server from €174.80/mon ](/dedicated-servers/type=gpu)
