From c56868b9ae84c7f9e0828f2dea6f2d01a781674b Mon Sep 17 00:00:00 2001 From: Kasra Bigdeli Date: Thu, 2 Jan 2020 22:22:11 -0500 Subject: Added file browser --- public/v2/apps/filebrowser.json | 40 ++++++++++++++++++++++++++++++++++++++++ public/v2/logos/filebrowser.png | Bin 0 -> 10274 bytes 2 files changed, 40 insertions(+) create mode 100644 public/v2/apps/filebrowser.json create mode 100644 public/v2/logos/filebrowser.png diff --git a/public/v2/apps/filebrowser.json b/public/v2/apps/filebrowser.json new file mode 100644 index 0000000..2afab5f --- /dev/null +++ b/public/v2/apps/filebrowser.json @@ -0,0 +1,40 @@ +{ + "captainVersion": "2", + "documentation": "Taken from https://filebrowser.xyz/installation#docker except moved the database to a directory to be able to associate with a volume", + "displayName": "", + "description": "filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory.", + "dockerCompose": { + "version": "3.3", + "services": { + "$$cap_appname": { + "dockerfileLines": [ + "FROM alpine:latest as helper", + "# Similar to the original file, except, /database.db is inside a directory now so that we can assign a volume to it.", + "RUN echo \"{'port':80,'baseURL':'','address':'','log':'stdout','database':'/database/database.db','root':'/srv'}\" | sed \"s/\\'/\\\"/g\" >/.edited.json", + "FROM filebrowser/filebrowser:$$cap_filebrowser_version", + "COPY --from=helper /.edited.json /.filebrowser.json" + ], + "volumes": [ + "$$cap_appname-database:/database", + "$$cap_appname-files:/srv" + ], + "restart": "always", + "environment": { + } + } + } + }, + "instructions": { + "start": "filebrowser provides a file managing interface within a specified directory and it can be used to upload, delete, preview, rename and edit your files. It allows the creation of multiple users and each user can have its own directory.\n\n\nIMPORTANT:\nThe default image maps an empty volume to FileBrowser in order to avoid exposing your files, but after you finished installation and changed the password you can mount the root directory of host. i.e. / to /srv in the app.", + "end": "username and password are both \"admin\".\n\nRemember that currently, $$cap_appname-files, an empty directory, is mapped to your file browser /srv, the directory you see when you use file browser. You can, however, change this to map / from the host to /srv in order to view all your files on your server.\n\n" + }, + "variables": [ + { + "id": "$$cap_filebrowser_version", + "label": "File Browser Version Tag", + "description": "Check out their Docker page for the valid tags: https://hub.docker.com/r/filebrowser/filebrowser/tags", + "defaultValue": "v2.0.16", + "validRegex": "/^([^\\s^\\/])+$/" + } + ] +} \ No newline at end of file diff --git a/public/v2/logos/filebrowser.png b/public/v2/logos/filebrowser.png new file mode 100644 index 0000000..e7aa63d Binary files /dev/null and b/public/v2/logos/filebrowser.png differ -- cgit v1.2.3