Switched to dedicated sync service

This commit is contained in:
2026-01-17 21:28:57 +01:00
parent 19c27c8ef0
commit 70dd1358ca
10 changed files with 87 additions and 142 deletions

29
docker-compose.yml Normal file
View File

@@ -0,0 +1,29 @@
services:
backup:
image: registry.leon-hoppe.de/leon.hoppe/onedrivebackupservice:latest
container_name: backup-worker
user: root
environment:
TZ: Europe/Berlin
Schedule: 0 3 * * 1
UploadRoot: /data/Server/Backups
LocalRoot: /backups
IncludeFile: include.txt
KeepLast: 2
volumes:
- /home/leon:/backups:ro
- ./data:/data:rw
- ./cache:/tmp:rw
sync:
image: driveone/onedrive:edge
container_name: backup-sync
volumes:
- ./config:/onedrive/conf:rw
- ./data:/onedrive/data:rw
environment:
- ONEDRIVE_UID=1000
- ONEDRIVE_GID=1000
- ONEDRIVE_UPLOADONLY=1
- ONEDRIVE_NOREMOTEDELETE=1
- ONEDRIVE_AUTHFILES=/onedrive/conf/auth-url:/onedrive/conf/auth-response