From a3a270bf397db1c0fa780f84563904bf2d0ec638 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Sun, 30 Apr 2023 11:43:43 -0500 Subject: [PATCH] docs: added filebrowser sidecar example (#2110) --- examples/atm8/docker-compose.yml | 29 +++++++++++++++++++++++++++-- examples/atm8/filebrowser.json | 8 ++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 examples/atm8/filebrowser.json diff --git a/examples/atm8/docker-compose.yml b/examples/atm8/docker-compose.yml index ae057e41..c04a9d36 100644 --- a/examples/atm8/docker-compose.yml +++ b/examples/atm8/docker-compose.yml @@ -14,5 +14,30 @@ services: CF_FILENAME_MATCHER: "1.0.6" MEMORY: 4G volumes: - - ./data:/data - - ./downloads:/downloads \ No newline at end of file + - 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: {} \ No newline at end of file diff --git a/examples/atm8/filebrowser.json b/examples/atm8/filebrowser.json new file mode 100644 index 00000000..ff688c35 --- /dev/null +++ b/examples/atm8/filebrowser.json @@ -0,0 +1,8 @@ +{ + "port": 80, + "baseURL": "", + "address": "", + "log": "stdout", + "database": "/database/filebrowser.db", + "root": "/srv" +} \ No newline at end of file