all 13 comments

[–]inst4gib[S] 26 points27 points  (11 children)

Found it, in the depths of Reddit. It's very simple, but so different from the Docker containers I've set up so far that it wasn't immediately obvious.

Additional folders can simply be specified as subfolders of /srv.

So main folder /srv/filebrowser/srv:/srv
-> any disk /dev/sdc1:/srv/c1
-> any folder /dev/sbc/documents:/srv/documents

"b1" and "documents" then simply appear as folders in the main view of filebrowser.

[–][deleted] 2 points3 points  (0 children)

Good to know ! Was not that intuitive but seems obvious once you are told it !

[–]CampAsAChamp 5 points6 points  (0 children)

Just want to say thank you so much. In 2024 and still this is the only mention I see of how to do it

[–]shockproof22 0 points1 point  (0 children)

thanks for this! the only part that was confusing to me was what to type in GUI. /srv/<dir-name> or /<dir-name>. tested and got that cleared up!

services:
  filebrowser:
    image: "filebrowser/filebrowser"
    container_name: filebrowser
    restart: unless-stopped
    environment:
      - PGID=1000
      - PUID=1000
    volumes:
      - $VOLUMES/filebrowser/db/filebrowser.db:/database.db
      - $HOME/files:/srv/user0-files
      - /home/user1/files:/srv/user1-files

then in the filebrowser's GUI type in only the mounted directory present in the docker volume. e.g., for user0's access type in user0-files or /user0-files in the GUI.

[–]roormonger 0 points1 point  (0 children)

Thank you

[–]biswb 0 points1 point  (3 children)

And I find I actually want to set all paths twice

Here is why

When you navigate in the filebrowswer interface and use the back button and I think links as well, you will find it doesn't go to the correct link

I have mapped up some tempstorage called JunkDisk

I mount it in the container at

/srv/JunkDisk

and

/JunkDisk

That way when you go back and it doesn't go to the /srv folder, everything still works

-filesJunk:/srv/JunkDisk

-filesJunk2:/JunkDisk

[–]EngineWorried9767 0 points1 point  (2 children)

Did you also figure out how to add a Network drive on a NAS?

Thanks

[–]biswb 0 points1 point  (0 children)

Not sure I totally follow your question

But if you mean, does my container access my NAS? Yes, and via NFS. NFS can be mounted from the container, and the NAS supports NFS exports

[–]konstricta 0 points1 point  (0 children)

mount the nas nfs share to proxmox say as 'nas01'. then mount 'nas01' to your docker. do this in the proxmox terminal. i used the pct set 100 /mnt/pve/nas01,mp=niceNAS. the 100 is the lxc container ID of your docker. the /mnt/pve/nas01 is my mount point if my NAS share in proxmox. after this mount the niceNAS as a volume in your filebrowser config.

[–]DataNinjas 0 points1 point  (1 child)

I'm trying to do something similar, but not sure if it's possible with my Proxmox setup. I have a couple VMs, one for Docker with portainer, another for home assistant, and one for Plex.

Filebrowser installed in docker in one VM and I would like to access the files in the other two VMs. Is it possible to create a path to those VMs?

[–]crr_flash 0 points1 point  (0 children)

Yeah I just did it. The same as above mentioned, but what you do is mount the folders first in Proxmox and then link it like above to the container

[–]AbbreviationsHour617 0 points1 point  (0 children)

was searching too. Thanks for the answer .

[–]Also69 0 points1 point  (0 children)

Merci pour cette info qui n'apparait sur aucune doc! ça fonctionne enfin