Skip to content

Instantly share code, notes, and snippets.

@EliasMasche
Last active August 19, 2024 01:12
Show Gist options
  • Save EliasMasche/a401394c3fa0a899523bed0e625b93c1 to your computer and use it in GitHub Desktop.
Save EliasMasche/a401394c3fa0a899523bed0e625b93c1 to your computer and use it in GitHub Desktop.
Docker compose for filebrowser
version: "3.8"
services:
filebrowser:
image: filebrowser/filebrowser:latest
volumes:
- /home:/srv
- /home/yourUser/filebrowser/filebrowser.db:/database/filebrowser.db
- /home/yourUser/filebrowser/settings.json:/config/settings.json
environment:
- PUID=$(id -u)
- PGID=$(id -g)
ports:
- 8095:80 #Change the port if needed
networks:
- dockge_default
networks:
dockge_default:
external: true
{
"port": 80,
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database/filebrowser.db",
"root": "/srv"
}
@EliasMasche
Copy link
Author

Documentation: https://filebrowser.org/installation

Volumes must exist already in your file system, you can use different paths/folders, and check for permission to avoid PERMISSION_DENIED errors

Settings.json must be the same volumes (db/root) <-> (database/root)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment