From af15242fd2cbebce2bdd359074b05d25c3544172 Mon Sep 17 00:00:00 2001 From: Nathan Falvey Date: Tue, 3 Mar 2026 00:19:29 +0000 Subject: [PATCH] Updates: 2026-03-03T00:19:27.661Z --- .gitignore | 15 +++++++++++++++ templates/rclone/README.md | 28 ++++++++++++++++++++++------ templates/rclone/docker-compose.yml | 22 ++++++++++++++++++++++ 3 files changed, 59 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index c9ef196..931f674 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,18 @@ __pycache__/ *.bak # Add any additional local-only files or directories below + +# Auto-committer ignored files +*.tmp +*.temp +*.cache +*.dll +*.exe +.vscode/** +.idea/** +.vs/** +node_modules/** +.git/** +dist/** +build/** +*.swo diff --git a/templates/rclone/README.md b/templates/rclone/README.md index bf9d5e5..d345609 100644 --- a/templates/rclone/README.md +++ b/templates/rclone/README.md @@ -1,8 +1,24 @@ -# rclone (templates) +# rclone (Portainer template) -### Description -Description for rclone goes here. +Rclone is a command-line program to manage files on cloud storage. It is a feature-rich alternative to cloud vendors' web storage interfaces. This template allows you to deploy rclone as a Docker service for automated syncing, mounting, or serving cloud files. -### Configuration -- Path: templates/rclone/docker-compose.yml -- Status: Draft +Quick notes: + +- **Persistence**: Ensure you mount a volume for the `rclone.conf` file to keep your remote credentials safe. +- **Capabilities**: If using `rclone mount`, the container usually requires `--cap-add SYS_ADMIN` and device access to `/dev/fuse`. +- **Environment**: Use environment variables to pass sensitive flags or configuration overrides. + +Usage: + +1. Import the compose file into Portainer's Stacks or App Templates. +2. Map your local data directories and the config directory (usually `~/.config/rclone`). +3. Configure your remotes via `docker exec -it rclone config` or by providing a pre-made config file. +4. Deploy and monitor logs via Portainer. + +Helpful links: + +- Official site: https://rclone.org/ +- Documentation: https://rclone.org/docs/ +- Docker Hub: https://hub.docker.com/r/rclone/rclone + +**Status:** Ready for configuration diff --git a/templates/rclone/docker-compose.yml b/templates/rclone/docker-compose.yml index e69de29..b68d694 100644 --- a/templates/rclone/docker-compose.yml +++ b/templates/rclone/docker-compose.yml @@ -0,0 +1,22 @@ + +services: + rclone: + image: rclone/rclone:latest + container_name: rclone-sync + restart: unless-stopped + healthcheck: + test: wget --spider https://www.google.com/generate_204 && wget --spider http://localhost:5572 || exit 1 + start_period: 60s + interval: 30s + environment: + - PUID=1026 # Replace with your Synology User ID + - PGID=100 # Replace with your Synology Group ID + - TZ=Europe/Dublin + volumes: + - /volume1/docker/rclone/config:/config/rclone + - /volume1:/data:ro # Mounts your entire NAS as Read-Only for safety + - /volume2:/data2:ro + + command: rcd --rc-serve --rc-addr :5572 --rc-no-auth + ports: + - 5572:5572