aboutsummaryrefslogtreecommitdiff
path: root/app/garage/deploy
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2021-10-26 16:17:59 +0200
committerAlex <alex@adnab.me>2021-10-26 16:17:59 +0200
commit6c90a00f048e6b9b740efc91d2b8509fa7b83453 (patch)
treeef42d63ce5945f68c5109e3eb2258b3a281ff6f0 /app/garage/deploy
parentc51b654dd6b545137e61bafd2054cba60b0f0906 (diff)
parent7fc001a92f2587a8d725d23b53b10e4df5fed7f2 (diff)
downloadinfrastructure-6c90a00f048e6b9b740efc91d2b8509fa7b83453.tar.gz
infrastructure-6c90a00f048e6b9b740efc91d2b8509fa7b83453.zip
Merge pull request 'Migration to garage 0.4' (#53) from garage04 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/infrastructure/pulls/53
Diffstat (limited to 'app/garage/deploy')
-rw-r--r--app/garage/deploy/garage.hcl29
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
}