mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Updated FUSE Mount (markdown)
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:
|
it's possible to mount a directory on the host with docker privileged mode like so:
|
||||||
```
|
```
|
||||||
mount_1:
|
mount_1:
|
||||||
# Mount my weed seaweed volume to host /weed path
|
|
||||||
image: chrislusf/seaweedfs
|
image: chrislusf/seaweedfs
|
||||||
privileged: true
|
cap_add:
|
||||||
pid: host
|
- SYS_ADMIN
|
||||||
entrypoint: 'nsenter -t 1 -m -u -n -i -- /usr/bin/weed mount -filer="localhost:8888,localhost:8889" -filer.path=/weed -dir=/weed'
|
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:
|
depends_on:
|
||||||
- master
|
- master
|
||||||
- filer
|
- filer
|
||||||
|
|
Loading…
Reference in a new issue