23 lines
690 B
YAML
23 lines
690 B
YAML
|
|
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
|