From 74d4f422f4d96a9faa8c4bd71d217301e57e1666 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 5 Dec 2023 09:38:43 -0800 Subject: [PATCH] Updated FUSE Mount (markdown) --- FUSE-Mount.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/FUSE-Mount.md b/FUSE-Mount.md index 07672e4..f0da1b6 100644 --- a/FUSE-Mount.md +++ b/FUSE-Mount.md @@ -93,11 +93,19 @@ If docker compose is being used to manage the server (eg. https://github.com/sea it's possible to mount a directory on the host with docker privileged mode like so: ``` mount_1: - # Mount my weed seaweed volume to host /weed path image: chrislusf/seaweedfs - privileged: true - pid: host - entrypoint: 'nsenter -t 1 -m -u -n -i -- /usr/bin/weed mount -filer="localhost:8888,localhost:8889" -filer.path=/weed -dir=/weed' + cap_add: + - SYS_ADMIN + devices: + - "/dev/fuse:/dev/fuse" + volumes: + - "/hostdata/mount:/mnt:z,shared" + entrypoint: weed + command: mount + environment: + - DIR=/mnt/data + - DIRAUTOCREATE=true + - FILER=localhost:8888,localhost:8889 depends_on: - master - filer