-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
29 lines (28 loc) · 961 Bytes
/
compose.yaml
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
services:
backup:
image: ghcr.io/valentin-kaiser/backup:latest
container_name: backup
volumes:
- /etc/localtime:/etc/localtime:ro
- ./source:/source
- ./backup:/backup
- ./log:/var/log
- ./.backupignore:/.backupignore
- ./.mounted:/.mounted
- ./backup_password:/run/secrets/backup_password
environment:
- BACKUP_SCHEDULE=* * * * *
- FORGET_SCHEDULE=0 * * * *
- RESTIC_SOURCE=/source
- RESTIC_REPOSITORY=/backup
- RESTIC_PASSWORD_FILE=/run/secrets/backup_password
- RESTIC_COMPRESSION=auto
- RESTIC_BACKUP_ARGS=--exclude-caches --exclude-if-present=.nobackup --exclude-file=/.backupignore
- RESTIC_FORGET_ARGS=--prune --keep-last 7 --keep-daily 7 --keep-weekly 5 --keep-monthly 12 --keep-yearly 1
- MOUNT_LOCK_TEST=false
- MOUNT_LOCK_FILE=/.mounted
secrets:
- backup_password
secrets:
backup_password:
file: ./backup_password