summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/backup.yml (renamed from images/backup/backup.yml)8
-rw-r--r--services/restore.yml (renamed from images/backup/restore.yml)8
2 files changed, 8 insertions, 8 deletions
diff --git a/images/backup/backup.yml b/services/backup.yml
index c182b8d..a3b2218 100644
--- a/images/backup/backup.yml
+++ b/services/backup.yml
@@ -3,14 +3,14 @@ version: '3'
services:
backup:
env_file:
- - config.env
- build: ./duplicity
+ - $IMAGES/backup/config.env
+ build: $IMAGES/backup/duplicity
command: /bin/sh /backup.sh
- hostname: duplicity
+ hostname: backup
restart: "no"
volumes:
- cache:/cache
- - ./gpg_keys:/gpg_keys:ro
+ - $IMAGES/backup/gpg_keys:/gpg_keys:ro
- git_data:/data/git
diff --git a/images/backup/restore.yml b/services/restore.yml
index 6640b26..d1739aa 100644
--- a/images/backup/restore.yml
+++ b/services/restore.yml
@@ -1,16 +1,16 @@
version: '3'
services:
- backup:
+ restore:
env_file:
- - config.env
- build: ./duplicity
+ - $IMAGES/backup/config.env
+ build: $IMAGES/backup/duplicity
command: /bin/sh /restore.sh
hostname: duplicity
restart: "no"
volumes:
- ./restored:/data
- - ./gpg_keys:/gpg_keys
+ - $IMAGES/backup/gpg_keys:/gpg_keys
volumes:
cache: