docs: added filebrowser sidecar example (#2110)

This commit is contained in:
Geoff Bourne 2023-04-30 11:43:43 -05:00 committed by GitHub
parent d4165cd9c3
commit a3a270bf39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 2 deletions

View File

@ -14,5 +14,30 @@ services:
CF_FILENAME_MATCHER: "1.0.6"
MEMORY: 4G
volumes:
- ./data:/data
- mc-data:/data
- ./downloads:/downloads
# Since Docker's default volume driver creates volumes owned by root, this
# init container will change ownership to match final UID of mc service, above
init-filebrowser:
image: filebrowser/filebrowser
entrypoint: sh -c
command:
- "chown -R 1000: /database"
restart: no
volumes:
- filebrowser-db:/database
filebrowser:
image: filebrowser/filebrowser
depends_on:
- init-filebrowser
user: "1000:1000"
volumes:
- mc-data:/srv
- filebrowser-db:/database
- ./filebrowser.json:/.filebrowser.json
ports:
- "25580:80"
volumes:
mc-data: {}
filebrowser-db: {}

View File

@ -0,0 +1,8 @@
{
"port": 80,
"baseURL": "",
"address": "",
"log": "stdout",
"database": "/database/filebrowser.db",
"root": "/srv"
}