summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
Diffstat (limited to 'services')
-rw-r--r--services/backup.yml21
-rw-r--r--services/restore.yml16
2 files changed, 37 insertions, 0 deletions
diff --git a/services/backup.yml b/services/backup.yml
new file mode 100644
index 0000000..a3b2218
--- /dev/null
+++ b/services/backup.yml
@@ -0,0 +1,21 @@
+version: '3'
+
+services:
+ backup:
+ env_file:
+ - $IMAGES/backup/config.env
+ build: $IMAGES/backup/duplicity
+ command: /bin/sh /backup.sh
+ hostname: backup
+ restart: "no"
+ volumes:
+ - cache:/cache
+ - $IMAGES/backup/gpg_keys:/gpg_keys:ro
+
+ - git_data:/data/git
+
+volumes:
+ cache:
+
+ # server_git_data:
+ #external: true
diff --git a/services/restore.yml b/services/restore.yml
new file mode 100644
index 0000000..d1739aa
--- /dev/null
+++ b/services/restore.yml
@@ -0,0 +1,16 @@
+version: '3'
+
+services:
+ restore:
+ env_file:
+ - $IMAGES/backup/config.env
+ build: $IMAGES/backup/duplicity
+ command: /bin/sh /restore.sh
+ hostname: duplicity
+ restart: "no"
+ volumes:
+ - ./restored:/data
+ - $IMAGES/backup/gpg_keys:/gpg_keys
+
+volumes:
+ cache: