-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (50 loc) · 2.83 KB
/
docker-compose.yml
File metadata and controls
57 lines (50 loc) · 2.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
services:
duplicacy-cli-cron:
image: drumsergio/duplicacy-cli-cron:3.2.5.2
container_name: duplicacy-cli-cron
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "50m"
max-file: "3"
volumes:
- /mnt/user/appdata/duplicacy/config:/config
- /mnt/user/appdata/duplicacy/cron:/etc/periodic
# UnRAID source locations (adjust for your setup):
- /mnt/user:/local_shares # Local shares (Duplicacy repos live here)
- /boot:/boot_usb # Boot USB config
# Ubuntu/Debian source locations (uncomment as needed):
# - /var/spool/cron/crontabs:/local_crontab
# - /etc:/local_etc
# - /home:/local_home
# - /var/lib/tailscale:/local_tailscale
environment:
# ── Cron schedules (stagger across servers to avoid S3 contention) ──
CRON_DAILY: "0 2 * * *" # Daily backup time
CRON_WEEKLY: "0 4 * * 6" # Weekly exhaustive prune (Saturday)
# ── Duplicacy tuning ────────────────────────────────────────────────
DUPLICACY_THREADS: "8" # Parallel upload/download threads
# ── S3 storage credentials (one set per Duplicacy storage name) ─────
# Duplicacy resolves env vars by convention:
# DUPLICACY_<STORAGENAME>_S3_ID → S3 access key
# DUPLICACY_<STORAGENAME>_S3_SECRET → S3 secret key
# DUPLICACY_<STORAGENAME>_PASSWORD → repository encryption password
#
DUPLICACY_APPDATA_S3_ID: YOUR_S3_ACCESS_KEY
DUPLICACY_APPDATA_S3_SECRET: YOUR_S3_SECRET_KEY
DUPLICACY_APPDATA_PASSWORD: YOUR_ENCRYPTION_PASSWORD
# Repeat for each storage (Multimedia, system, boot, etc.)
# DUPLICACY_MULTIMEDIA_S3_ID: ...
# DUPLICACY_MULTIMEDIA_S3_SECRET: ...
# DUPLICACY_MULTIMEDIA_PASSWORD: ...
# ── Notification & identification ───────────────────────────────────
TZ: Europe/Madrid
HOST: MyServer # Machine name shown in notifications
SHOUTRRR_URL: telegram://TOKEN@telegram?chats=YOUR_CHAT_ID¬ification=no&parseMode=markdown
# ── Used by config-s3.sh for repo initialization ────────────────────
ENDPOINT_1: "192.168.1.100:3900" # S3 endpoint (Garage, MinIO, etc.)
BUCKET: duplicacy # S3 bucket name
REGION: garage # S3 region (use "garage" for Garage)
# ── Timeout for stuck backups ───────────────────────────────────────
MAX_RUNTIME_HOURS: "71" # Kill stuck backups after this many hours