Updates: 2026-03-03T00:19:27.661Z
This commit is contained in:
15
.gitignore
vendored
15
.gitignore
vendored
@@ -33,3 +33,18 @@ __pycache__/
|
|||||||
*.bak
|
*.bak
|
||||||
|
|
||||||
# Add any additional local-only files or directories below
|
# 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
|
||||||
|
|||||||
@@ -1,8 +1,24 @@
|
|||||||
# rclone (templates)
|
# rclone (Portainer template)
|
||||||
|
|
||||||
### Description
|
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.
|
||||||
Description for rclone goes here.
|
|
||||||
|
|
||||||
### Configuration
|
Quick notes:
|
||||||
- Path: templates/rclone/docker-compose.yml
|
|
||||||
- Status: Draft
|
- **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 <container_name> 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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user