From d1a4ed0f7918005dc8972a83a919b99616f79112 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Sat, 6 Mar 2021 19:52:13 +0100 Subject: Matrix backup draft --- app/backup/deploy/backup-manual.hcl | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 app/backup/deploy/backup-manual.hcl (limited to 'app/backup/deploy/backup-manual.hcl') diff --git a/app/backup/deploy/backup-manual.hcl b/app/backup/deploy/backup-manual.hcl new file mode 100644 index 0000000..2e6ffef --- /dev/null +++ b/app/backup/deploy/backup-manual.hcl @@ -0,0 +1,62 @@ +job "backup_manual" { + datacenters = ["dc1"] + + type = "batch" + + task "backup-matrix" { + driver = "docker" + + config { + image = "superboum/backup_matrix:1" + volumes = [ + "secrets/id_ed25519:/root/.ssh/id_ed25519", + "secrets/id_ed25519.pub:/root/.ssh/id_ed25519.pub", + "secrets/known_hosts:/root/.ssh/known_hosts" + ] + network_mode = "host" + } + + env { + CONSUL_HTTP_ADDR = "http://consul.service.2.cluster.deuxfleurs.fr:8500" + } + + template { + data = <