aboutsummaryrefslogtreecommitdiff
path: root/app/garage-staging
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-12-08 11:41:07 +0100
committerAlex Auvolat <alex@adnab.me>2021-12-08 11:41:07 +0100
commit8846421cc44fc958e08a1eff2a12ebc54178731b (patch)
treee8ad904553318971ad224e768d72e83b2636d4de /app/garage-staging
parentfff6f1db20700a7d8acaaa44dc667f09c26c3da7 (diff)
downloadinfrastructure-8846421cc44fc958e08a1eff2a12ebc54178731b.tar.gz
infrastructure-8846421cc44fc958e08a1eff2a12ebc54178731b.zip
Deploy core on neptune as well
Diffstat (limited to 'app/garage-staging')
-rw-r--r--app/garage-staging/config/garage.toml2
-rw-r--r--app/garage-staging/deploy/garage.hcl26
2 files changed, 24 insertions, 4 deletions
diff --git a/app/garage-staging/config/garage.toml b/app/garage-staging/config/garage.toml
index 60f97c5..2ed46c0 100644
--- a/app/garage-staging/config/garage.toml
+++ b/app/garage-staging/config/garage.toml
@@ -19,5 +19,5 @@ api_bind_addr = "[::]:3990"
[s3_web]
bind_addr = "[::]:3992"
-root_domain = ".web-staging.deuxfleurs.fr"
+root_domain = ".garage-staging-web.home.adnab.me"
index = "index.html"
diff --git a/app/garage-staging/deploy/garage.hcl b/app/garage-staging/deploy/garage.hcl
index a0b5d66..9284461 100644
--- a/app/garage-staging/deploy/garage.hcl
+++ b/app/garage-staging/deploy/garage.hcl
@@ -56,9 +56,7 @@ job "garage-staging" {
service {
tags = [
"garage-staging-api",
- "traefik.enable=true",
- "traefik.frontend.entryPoints=https,http",
- "traefik.frontend.rule=Host:garage-staging.deuxfleurs.fr"
+ "tricot garage-staging.home.adnab.me",
]
port = 3990
address_mode = "driver"
@@ -96,6 +94,28 @@ job "garage-staging" {
}
}
+ service {
+ tags = [
+ "garage-staging-web",
+ "tricot *.garage-staging-web.home.adnab.me",
+ ]
+ port = 3992
+ address_mode = "driver"
+ name = "garage-staging-web"
+ check {
+ type = "tcp"
+ port = 3992
+ address_mode = "driver"
+ interval = "60s"
+ timeout = "5s"
+ check_restart {
+ limit = 3
+ grace = "90s"
+ ignore_warnings = false
+ }
+ }
+ }
+
restart {
interval = "30m"
attempts = 10