Skip to content

Instantly share code, notes, and snippets.

@magicstone1412
Created November 18, 2024 14:44
Show Gist options
  • Save magicstone1412/288e5c7de307362e362acfc174819baa to your computer and use it in GitHub Desktop.
Save magicstone1412/288e5c7de307362e362acfc174819baa to your computer and use it in GitHub Desktop.
Mount Yandex disk using rclone docker compose
---
services:
rclone-mount:
image: rclone/rclone:latest
container_name: rclone-mount
restart: unless-stopped
environment:
- RCLONE_CONFIG=/config/.rclone.conf
- PUID=1001
- PGID=100
volumes:
- /srv/dev-disk-by-uuid-6600936a-8024-462d-a92a-96ce2b73c2c7/docker/config/rclone:/config
- /srv/yandex_disk:/yandex_disk:shared
command: mount "yandex_disk:/" "/yandex_disk" --allow-other --allow-non-empty
cap_add:
- SYS_ADMIN
devices:
- /dev/fuse
security_opt:
- apparmor:unconfined
@magicstone1412
Copy link
Author

When forcing remove the container, use the command sudo fusermount -u -z /host/mount/point on the hostsystem!

Try this

command: mount "yandex_disk:/" "/yandex_disk" --allow-other --allow-non-empty --dir-cache-time 48h --poll-interval 5m --buffer-size 128M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment