My Setup
Requirements
Docker installed on Raspberry pi > see other post
Steps
sudo apt update
sudo apt upgrade -y
sudo mkdir -p /opt/stacks/filebrowser
cd /opt/stacks/filebrowser
sudo mkdir data config
sudo touch ./data/database.db
sudo nano ./config/filebrowser.json
{
"port": 80,
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database.db",
"root": "/srv"
}
Code language: JSON / JSON with Comments (json)
sudo chown -R $USER:$USER ./config ./data
Code language: PHP (php)
sudo nano compose.yaml
Code language: CSS (css)
Watch it, the default ports to be used are 8080:80. In my case (see other post) RCLONE is listening on port 8080. So my setup has been made with 8383, then it works fine.
services:
filebrowser:
image: filebrowser/filebrowser
user: "<USERID>:<GROUPID>"
ports:
- <mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-typology-acc-color">8383</mark>:80
volumes:
- <DIRECTORY>:/srv
- /opt/stacks/filebrowser/data/database.db:/database.db
- /opt/stacks/filebrowser/config/filebrowser.json:/.filebrowser.json
restart: always
Code language: HTML, XML (xml)
docker compose up -d
http://<IPADDRESS-of-RPi>:<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-typology-acc-color">8383</mark>
Code language: HTML, XML (xml)
Login with admin and admin
After login: change password
- Settings
- Profile Settings
- Change Password
- then, User Management
- Click on pensil
- Change user name of admin
- Logout
- Login with new credentials
sources (references) & credits
Basically all input/information came from the websites below. So credits and thanks to those content creators and subject matter experts. The only reason I mainly copy/paste their content is to guarantee I have a backup for myself and because multiple times I had to change and adapt. So archiving the “scripts” as I executed it succesfully is inportant for me.
https://pimylifeup.com/raspberry-pi-file-browser
https://claude.ai/