-
Notifications
You must be signed in to change notification settings - Fork 72
/
docker-swarm.example.yml
47 lines (44 loc) · 1.22 KB
/
docker-swarm.example.yml
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
version: "3.3"
services:
backup:
image: mazzolino/restic
environment:
BACKUP_CRON: "0 30 3 * * *"
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
RESTIC_BACKUP_SOURCES: /mnt/volumes
#RESTIC_BACKUP_ARGS: -v
RESTIC_BACKUP_TAGS: docker-volumes
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin
hostname: "{{.Node.ID}}"
volumes:
- /var/lib/docker/volumes:/mnt/volumes:ro
deploy:
mode: global
prune:
image: mazzolino/restic
hostname: docker
environment:
SKIP_INIT: "true"
PRUNE_CRON: "0 0 4 * * *"
RESTIC_FORGET_ARGS: --prune --keep-last 14 --keep-daily 1
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin
check:
image: mazzolino/restic
hostname: docker
environment:
SKIP_INIT: "true"
RUN_ON_STARTUP: "false"
CHECK_CRON: "0 15 5 * * *"
RESTIC_CHECK_ARGS: --read-data-subset=10%
RESTIC_REPOSITORY: b2:my-repo:/restic
RESTIC_PASSWORD: supersecret
B2_ACCOUNT_ID: xxxxxxx
B2_ACCOUNT_KEY: yyyyyyyy
TZ: Europe/Berlin