synapse on dummy infrastructure for tricot test
This commit is contained in:
parent
3693d9f36b
commit
ea55c9b12b
3 changed files with 50 additions and 2 deletions
47
app/dummy/deploy/dummy-synapse.hcl
Normal file
47
app/dummy/deploy/dummy-synapse.hcl
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
job "dummy-synapse" {
|
||||||
|
datacenters = ["neptune"]
|
||||||
|
type = "service"
|
||||||
|
|
||||||
|
group "synapse" {
|
||||||
|
count = 1
|
||||||
|
|
||||||
|
constraint {
|
||||||
|
attribute = "${attr.unique.hostname}"
|
||||||
|
operator = "="
|
||||||
|
value = "cariacou"
|
||||||
|
}
|
||||||
|
|
||||||
|
network {
|
||||||
|
port "http" {
|
||||||
|
to = 8008
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
task "synapse" {
|
||||||
|
driver = "docker"
|
||||||
|
config {
|
||||||
|
image = "matrixdotorg/synapse:v1.48.0"
|
||||||
|
ports = [ "http" ]
|
||||||
|
volumes = [
|
||||||
|
"/mnt/ssd/dummy-synapse:/data",
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
service {
|
||||||
|
port = "http"
|
||||||
|
tags = [
|
||||||
|
"tricot matrix.home.adnab.me 100",
|
||||||
|
"tricot matrix.home.adnab.me:8448 100",
|
||||||
|
"tricot-add-header Access-Control-Allow-Origin *",
|
||||||
|
]
|
||||||
|
check {
|
||||||
|
type = "http"
|
||||||
|
path = "/"
|
||||||
|
interval = "10s"
|
||||||
|
timeout = "2s"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -25,7 +25,7 @@ job "frontend" {
|
||||||
driver = "docker"
|
driver = "docker"
|
||||||
|
|
||||||
config {
|
config {
|
||||||
image = "lxpz/amd64_tricot:7"
|
image = "lxpz/amd64_tricot:9"
|
||||||
network_mode = "host"
|
network_mode = "host"
|
||||||
readonly_rootfs = true
|
readonly_rootfs = true
|
||||||
ports = [ "http_port", "https_port", "admin_port" ]
|
ports = [ "http_port", "https_port", "admin_port" ]
|
||||||
|
@ -47,7 +47,7 @@ job "frontend" {
|
||||||
data = <<EOH
|
data = <<EOH
|
||||||
TRICOT_NODE_NAME={{ env "attr.unique.hostname" }}
|
TRICOT_NODE_NAME={{ env "attr.unique.hostname" }}
|
||||||
TRICOT_LETSENCRYPT_EMAIL=alex@adnab.me
|
TRICOT_LETSENCRYPT_EMAIL=alex@adnab.me
|
||||||
RUST_LOG=tricot=trace
|
RUST_LOG=tricot=debug
|
||||||
EOH
|
EOH
|
||||||
destination = "secrets/env"
|
destination = "secrets/env"
|
||||||
env = true
|
env = true
|
||||||
|
|
|
@ -98,6 +98,7 @@ job "garage-staging" {
|
||||||
tags = [
|
tags = [
|
||||||
"garage-staging-web",
|
"garage-staging-web",
|
||||||
"tricot *.garage-staging-web.home.adnab.me",
|
"tricot *.garage-staging-web.home.adnab.me",
|
||||||
|
"tricot matrix.home.adnab.me/.well-known/matrix/server",
|
||||||
"tricot rust-docs",
|
"tricot rust-docs",
|
||||||
"tricot-add-header Access-Control-Allow-Origin *",
|
"tricot-add-header Access-Control-Allow-Origin *",
|
||||||
]
|
]
|
||||||
|
|
Reference in a new issue