forked from wernight/docker-duplicity
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
43 lines (41 loc) · 1.12 KB
/
docker-compose.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
version: '3.6'
services:
duplicity:
container_name: ${COMPOSE_PROJECT_NAME}-backup
build:
context: ./latest
image: clarity/duplicity
environment:
- TMPDIR=/tmp
- PASSPHRASE=${PASSPHRASE}
volumes:
- type: tmpfs
target: /tmp
- type: volume
source: gnupg
target: /home/duplicity/.gnupg
- type: volume
source: cache
target: /home/duplicity/.cache/duplicity
- type: bind
source: ./filelist.txt
target: /home/duplicity/filelist.txt
- type: bind
source: ./backup
target: /backup
- type: bind
source: /docker
target: /data/docker
- type: bind
source: /var/lib/docker/volumes
target: /data/docker-volumes
command: -v4 --include-filelist=/home/duplicity/filelist.txt --full-if-older-than=2M --allow-source-mismatch /data file:///backup
volumes:
gnupg:
name: ${COMPOSE_PROJECT_NAME}_gnupg
cache:
name: ${COMPOSE_PROJECT_NAME}_cache
networks:
default:
external:
name: ${NETWORK:-clarity}