summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorSystem administrator2017-06-01 10:44:24 +0200
committerSystem administrator2017-06-01 10:44:24 +0200
commit3cc6de8c6393e056961d8bc11612f54d3138c1f0 (patch)
tree120c5e8ab544e54f12b7f327766b746496dd6a74 /services
parent33c2361ab6f0d7bfc802d2fc10d2f29aef44867b (diff)
downloadserver-3cc6de8c6393e056961d8bc11612f54d3138c1f0.tar.gz
server-3cc6de8c6393e056961d8bc11612f54d3138c1f0.tar.xz
server-3cc6de8c6393e056961d8bc11612f54d3138c1f0.zip
Move service images
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: