Automatically mount fuse volume when seafile starts


I’ve been using seafile as my cloud solution and recently decided to add another service to tag and label photos. To accomplish that, I went with the FUSE extension which mounts into a volume that gets read by this service to categorize my images.

However, I’ve found that using docker it’s complicated to automatically ensure this volume is always mounted. The instructions indicate:

docker exec -it seafile bash
cd /opt/seafile/seafile-server-latest/
./ start /seafile-fuse

which works pretty well for a one-off manual approach, but if I want to ensure the FUSE volume is always mounted when seafile starts, there’s no reliable way. It would be interesting if there was a start option or environment variable which would indicate a path for the FUSE extension to mount.