FileRun installation using Docker
For customizing the image, fork it on GitHub: https://github.com/filerun/docker
For ARM32 CPU's (Raspberry Pi) please use this guide.
For ARM64 CPU's (Raspberry Pi) please use this guide.
If you plan to use the full-text searching feature, please use this guide instead.
This guide assumes you have Docker with docker-compose
installed on a server:
apt-get install -y docker-compose
Create a text file named docker-compose.yml
:
vim docker-compose.yml
and paste the following inside:
version: '2' services: db: image: mariadb:10.1 environment: MYSQL_ROOT_PASSWORD: your_mysql_root_password MYSQL_USER: your_filerun_username MYSQL_PASSWORD: your_filerun_password MYSQL_DATABASE: your_filerun_database volumes: - /filerun/db:/var/lib/mysql web: image: filerun/filerun environment: FR_DB_HOST: db FR_DB_PORT: 3306 FR_DB_NAME: your_filerun_database FR_DB_USER: your_filerun_username FR_DB_PASS: your_filerun_password APACHE_RUN_USER: www-data APACHE_RUN_USER_ID: 33 APACHE_RUN_GROUP: www-data APACHE_RUN_GROUP_ID: 33 depends_on: - db links: - db:db ports: - "80:80" volumes: - /filerun/html:/var/www/html - /filerun/user-files:/user-files
Please note the above volumes
configuration. There are two folders you need to configure. One for the FileRun application files. It can be located in any empty folder and must have the mount path set to /var/www/html
and one for the FileRun user files, with the mount path set to /user-files
.
In other words, if you use the above configuration text as it is, you just need to create two empty folders, /filerun/html
and /filerun/user-files
and you can starting the FileRun Docker container up:
mkdir /filerun /filerun/html /filerun/user-files /filerun/db
And start FileRun up using the following command:
docker-compose up -d
FileRun should be now up and running and you can access it with your browser.
SSL/HTTPS
Please see this guide.