nixcfg/app/im/deploy/im.hcl

49 lines
870 B
HCL
Raw Normal View History

2021-12-25 21:39:05 +00:00
job "im" {
2021-12-29 21:15:49 +00:00
datacenters = ["neptune"]
type = "service"
group "synapse" {
count = 1
2021-12-29 21:15:49 +00:00
constraint {
attribute = "${attr.unique.hostname}"
operator = "="
value = "cariacou"
}
2021-12-29 21:15:49 +00:00
network {
port "http" {
to = 8008
}
}
2021-12-29 21:15:49 +00:00
task "synapse" {
driver = "docker"
config {
image = "matrixdotorg/synapse:v1.48.0"
ports = [ "http" ]
volumes = [
2021-12-25 21:39:05 +00:00
"/mnt/ssd/synapse:/data",
]
2021-12-29 21:15:49 +00:00
}
}
2021-12-29 21:15:49 +00:00
service {
port = "http"
tags = [
"tricot matrix.home.adnab.me 100",
"tricot matrix.home.adnab.me:443 100",
"tricot matrix.home.adnab.me:8448 100",
"tricot-add-header Access-Control-Allow-Origin *",
2021-12-29 21:15:49 +00:00
]
check {
type = "http"
path = "/"
interval = "10s"
timeout = "2s"
}
}
}
}