forked from Deuxfleurs/nixcfg
multi-zone matrix
This commit is contained in:
parent
e375304c38
commit
b73c39c7c1
1 changed files with 5 additions and 11 deletions
|
@ -1,5 +1,5 @@
|
||||||
job "matrix" {
|
job "matrix" {
|
||||||
datacenters = ["orion"]
|
datacenters = ["orion", "neptune"]
|
||||||
type = "service"
|
type = "service"
|
||||||
priority = 40
|
priority = 40
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@ job "matrix" {
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "api_port" { static = 8008 }
|
port "api_port" { static = 8008 }
|
||||||
|
port "web_port" { to = 8043 }
|
||||||
}
|
}
|
||||||
|
|
||||||
task "synapse" {
|
task "synapse" {
|
||||||
|
@ -79,6 +80,7 @@ job "matrix" {
|
||||||
"tricot im.deuxfleurs.fr:443/_matrix 100",
|
"tricot im.deuxfleurs.fr:443/_matrix 100",
|
||||||
"tricot im.deuxfleurs.fr/_synapse 100",
|
"tricot im.deuxfleurs.fr/_synapse 100",
|
||||||
"tricot-add-header Access-Control-Allow-Origin *",
|
"tricot-add-header Access-Control-Allow-Origin *",
|
||||||
|
"d53-cname im.deuxfleurs.fr",
|
||||||
]
|
]
|
||||||
check {
|
check {
|
||||||
type = "tcp"
|
type = "tcp"
|
||||||
|
@ -130,17 +132,8 @@ EOH
|
||||||
env = true
|
env = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
task "riotweb" {
|
||||||
group "riotweb" {
|
|
||||||
count = 1
|
|
||||||
|
|
||||||
network {
|
|
||||||
port "web_port" { to = 8043 }
|
|
||||||
}
|
|
||||||
|
|
||||||
task "server" {
|
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
config {
|
config {
|
||||||
image = "superboum/amd64_riotweb:v33"
|
image = "superboum/amd64_riotweb:v33"
|
||||||
|
@ -164,6 +157,7 @@ EOH
|
||||||
"webstatic",
|
"webstatic",
|
||||||
"tricot im.deuxfleurs.fr 10",
|
"tricot im.deuxfleurs.fr 10",
|
||||||
"tricot riot.deuxfleurs.fr 10",
|
"tricot riot.deuxfleurs.fr 10",
|
||||||
|
"d53-cname riot.deuxfleurs.fr",
|
||||||
]
|
]
|
||||||
port = "web_port"
|
port = "web_port"
|
||||||
address_mode = "host"
|
address_mode = "host"
|
||||||
|
|
Loading…
Reference in a new issue