Updated FUSE Mount (markdown)

Chris Lu 2023-12-05 09:38:43 -08:00
parent fdfca4e857
commit 74d4f422f4

@ -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