diff --git a/FUSE-Mount.md b/FUSE-Mount.md index 233f5da..9bd3681 100644 --- a/FUSE-Mount.md +++ b/FUSE-Mount.md @@ -88,6 +88,22 @@ filer ---- mount1 ``` +#### Mount directory on host from docker-compose + +If docker compose is being used to manage the server (eg. https://github.com/chrislusf/seaweedfs/wiki/Getting-Started#with-compose) +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' + depends_on: + - master + - filer +``` + ### Weed Mount Architecture `weed mount` has a persistent client connecting to Master, to get the location updates of all volumes.