aboutsummaryrefslogtreecommitdiff
path: root/app/garage/deploy/garage.hcl
diff options
context:
space:
mode:
Diffstat (limited to 'app/garage/deploy/garage.hcl')
-rw-r--r--app/garage/deploy/garage.hcl31
1 files changed, 8 insertions, 23 deletions
diff --git a/app/garage/deploy/garage.hcl b/app/garage/deploy/garage.hcl
index ab03e70..758be72 100644
--- a/app/garage/deploy/garage.hcl
+++ b/app/garage/deploy/garage.hcl
@@ -1,5 +1,5 @@
job "garage" {
- datacenters = ["dc1", "belair", "saturne"]
+ datacenters = ["dc1", "saturne", "neptune"]
type = "system"
priority = 80
@@ -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-rc2"
+ 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 = 1000
cpu = 1000
}