This commit is contained in:
Alex 2021-12-29 22:15:49 +01:00
parent 3d0c3c914d
commit 7c775e6017
No known key found for this signature in database
GPG key ID: 09EC5284AA804D3C
2 changed files with 37 additions and 37 deletions

View file

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