diff options
author | Alex Auvolat <alex@adnab.me> | 2021-10-26 14:14:41 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-10-26 16:14:29 +0200 |
commit | 7fc001a92f2587a8d725d23b53b10e4df5fed7f2 (patch) | |
tree | ef42d63ce5945f68c5109e3eb2258b3a281ff6f0 /app/garage/deploy | |
parent | c51b654dd6b545137e61bafd2054cba60b0f0906 (diff) | |
download | infrastructure-7fc001a92f2587a8d725d23b53b10e4df5fed7f2.tar.gz infrastructure-7fc001a92f2587a8d725d23b53b10e4df5fed7f2.zip |
Migration to garage 0.4garage04
Diffstat (limited to 'app/garage/deploy')
-rw-r--r-- | app/garage/deploy/garage.hcl | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl index ab03e70..01d5123 100644 --- a/app/garage/deploy/garage.hcl +++ b/app/garage/deploy/garage.hcl @@ -25,15 +25,14 @@ job "garage" { driver = "docker" config { advertise_ipv6_address = true - image = "lxpz/garage_amd64:v0.3.0.2" + image = "dxflrs/amd64_garage:v0.4-rc1" + command = "/garage" + args = [ "server" ] network_mode = "host" volumes = [ - "/mnt/storage/garage/data:/garage/data", - "/mnt/ssd/garage/meta:/garage/meta", - "secrets/garage.toml:/garage/config.toml", - "secrets/garage-ca.crt:/garage/garage-ca.crt", - "secrets/garage.crt:/garage/garage.crt", - "secrets/garage.key:/garage/garage.key", + "/mnt/storage/garage/data:/data", + "/mnt/ssd/garage/meta:/meta", + "secrets/garage.toml:/etc/garage.toml", ] logging { type = "journald" @@ -45,22 +44,8 @@ job "garage" { destination = "secrets/garage.toml" } - # --- secrets --- - template { - data = "{{ key \"secrets/garage/garage-ca.crt\" }}" - destination = "secrets/garage-ca.crt" - } - template { - data = "{{ key \"secrets/garage/garage.crt\" }}" - destination = "secrets/garage.crt" - } - template { - data = "{{ key \"secrets/garage/garage.key\" }}" - destination = "secrets/garage.key" - } - resources { - memory = 800 + memory = 1500 cpu = 1000 } |