This commit is contained in:
2026-03-18 16:35:15 +01:00
parent cb6536f656
commit f1711db72a
5 changed files with 89 additions and 18 deletions

View File

@@ -13,8 +13,8 @@
#
# Formato .env per multiple sync:
# SYNC_CONFIGS='[
# {"id":"sync1", "bucket":"bucket-a", "path":"/data/sync1", "interval":300},
# {"id":"sync2", "bucket":"bucket-b", "path":"/data/sync2", "interval":600}
# {"id":"sync1", "bucket":"bucket-a", "local_path":"/data/local1", "interval":300},
# {"id":"sync2", "bucket":"bucket-b", "local_path":"/data/local2", "interval":600}
# ]'
# ============================================================
@@ -61,9 +61,12 @@ services:
- TZ=${TZ:-Europe/Rome}
# Volumi:
# - Cartella locale per i file sincronizzati
# - Cartelle locali per sync multiple (default)
# - Cartella locale legacy per sync singola
# - Volume per lo stato interno (persistente tra i restart)
volumes:
- ${LOCAL_SYNC_PATH_1:-./data/sync1}:/data/local1
- ${LOCAL_SYNC_PATH_2:-./data/sync2}:/data/local2
- ${LOCAL_SYNC_PATH:-./data}:/data/local
- sync-state:/data/state