Deploy core on neptune as well
This commit is contained in:
parent
fff6f1db20
commit
8846421cc4
3 changed files with 60 additions and 40 deletions
|
@ -1,5 +1,5 @@
|
|||
job "core" {
|
||||
datacenters = ["dc1"]
|
||||
datacenters = ["dc1", "neptune"]
|
||||
type = "system"
|
||||
priority = 90
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue