Hi all,
I have been fighting with setting up google-drive rclone via docker for the past couple of days and I finally got it to work but i would appreciate a 2nd pair of eyes in case i am doing something blatantly stupid. Here is my docker-compose, any tips welcome.
rclone:
image: rclone/rclone:latest
container_name: rclone
restart: unless-stopped
networks:
rclone:
volumes:
- $DOCKERDIR/appdata/rclone/config:/config/rclone
- $USERDIR/rclone/data:/data:shared
- /etc/passwd:/etc/passwd:ro
- /etc/group:/etc/group:ro
user: "${PUID}:${PGID}"
privileged: true
cap_add:
- SYS_ADMIN
- SETPCAP
- MKNOD
devices:
- /dev/fuse:/dev/fuse
security_opt:
- apparmor:unconfined
command: "mount gdrive-sync:rsync /data \
--max-read-ahead=256M \
--buffer-size=128M \
--vfs-read-chunk-size=128M \
--vfs-read-chunk-size-limit=2048M \
--allow-non-empty \
--allow-other \
--multi-thread-chunk-size=500Mi \
--drive-chunk-size=1024M \
--tpslimit=10 \
--tpslimit-burst=20 \
--transfers=50 \
--checkers=8 \
--cache-db-purge \
--poll-interval 10m \
--buffer-size 1249M \
--log-level INFO"