You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Maybe this is helpful for people trying to spin up a pre-configured filebrowser container and find the various environment variables and other methods not working as documented or expected...
Pre-requisites
Create a folder for the configuration files and another for the database. Make sure the data folder is owned and writeable to the container user (1000:1000).
Slightly stripped down version, you'll need to add your networks or export port 80 (it seems to ignore the :8080 in the config file). The important bit is overriding the entrypoint and using a command that loads initial data and users when the database doesn't exist yet. Note the quoted $$FB_DATABASE. It's not a typo.
This will setup proxy auth ("authMethod": "proxy" and "header": "Remote-User") for use with e.g. Authelia instead of the default "json" method. You might want to revert this or adjust to your own environment and prefs.
You can add one or more users here, i.e. this is a JSON array. If you need to generate password hashes, simply use docker run --rm filebrowser/filebrowser hash '<YOUR-PASSWORD-HERE>'. Make sure you have at least one admin user.
Maybe this is helpful for people trying to spin up a pre-configured filebrowser container and find the various environment variables and other methods not working as documented or expected...
Pre-requisites
Create a folder for the configuration files and another for the database. Make sure the data folder is owned and writeable to the container user (1000:1000).
docker-compose.yml
Slightly stripped down version, you'll need to add your networks or export port 80 (it seems to ignore the :8080 in the config file). The important bit is overriding the entrypoint and using a command that loads initial data and users when the database doesn't exist yet. Note the quoted $$FB_DATABASE. It's not a typo.
./config/filebrowser.json
This will setup proxy auth (
"authMethod": "proxy"
and"header": "Remote-User"
) for use with e.g. Authelia instead of the default"json"
method. You might want to revert this or adjust to your own environment and prefs.Change options in this this file according to the docs.
./config/users.json
You can add one or more users here, i.e. this is a JSON array. If you need to generate password hashes, simply use
docker run --rm filebrowser/filebrowser hash '<YOUR-PASSWORD-HERE>'
. Make sure you have at least one admin user.Most options are explained here.
The text was updated successfully, but these errors were encountered: