++ Add Readme + Multiple S3 Configs

This commit is contained in:
2026-03-18 14:11:45 +01:00
parent d2080c936f
commit cb6536f656
9 changed files with 856 additions and 93 deletions

View File

@@ -1,15 +1,21 @@
# ============================================================
# Docker Compose - S3 to Local Mirror + Web Dashboard
# Docker Compose - S3 to Local Mirror + Web Dashboard (Multi-Sync)
# ============================================================
# Servizio che sincronizza un bucket S3-compatibile (RustFS, MinIO, etc.)
# verso una cartella locale montata come volume.
# Include una dashboard web in tempo reale (stile Syncthing).
# Servizio che sincronizza MULTIPLE bucket S3-compatibili
# verso cartelle locali montate come volumi.
# Include una dashboard web in tempo reale con supporto tab.
#
# Uso:
# 1. Configurare il file .env con i parametri del bucket
# 1. Configurare il file .env con MULTIPLE bucket (SYNC_1, SYNC_2, etc.)
# 2. docker compose up -d
# 3. Aprire http://localhost:8080 per la dashboard
# 4. I file appariranno nella cartella definita da LOCAL_SYNC_PATH
# 3. Aprire http://localhost:8080 per la dashboard con tab switcher
# 4. I file appariranno nei rispettivi mount point
#
# 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}
# ]'
# ============================================================
services:
@@ -22,7 +28,7 @@ services:
# Variabili d'ambiente passate al container
environment:
# --- S3 ---
# --- S3 (configurazione base, usata se SYNC_CONFIGS non è definito) ---
- S3_ENDPOINT=${S3_ENDPOINT}
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
- S3_SECRET_KEY=${S3_SECRET_KEY}
@@ -47,6 +53,8 @@ services:
# --- Web Dashboard ---
- WEB_PORT=${WEB_PORT:-8080}
- STATE_DIR=/data/state
# --- Multi-Sync Configuration (opzionale, se speci ficato override S3_BUCKET) ---
- SYNC_CONFIGS=${SYNC_CONFIGS:-}
# --- Sistema ---
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}