Merge pull request #45 from haiwen/docker-fuse

docker fuse
This commit is contained in:
Daniel Pan 2021-08-13 16:23:24 +08:00 committed by GitHub
commit 88704bce61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,3 +102,41 @@ sudo usermod -a -G fuse <your-user-name>
* Logout your shell and login again
* Now try `./seaf-fuse.sh start <path>`again.
### How to start seaf-fuse in docker
Only support Linux. Assume we want to mount to `/data/seafile-fuse` in host.
##### Modify docker-compose.yml
Add the following content
```yml
seafile:
...
volumes:
...
- type: bind
source: /data/seafile-fuse
target: /seafile-fuse
bind:
propagation: rshared
privileged: true
cap_add:
- SYS_ADMIN
```
##### Start seaf-fuse with the script in docker
Start Seafile server and enter the container
```bash
docker-compose up -d
docker exec -it seafile bash
```
Start seaf-fuse in the container
```bash
cd /opt/seafile/seafile-server-latest/
./seaf-fuse.sh start /seafile-fuse
```