fix tabs
This commit is contained in:
parent
8d48f3bf7f
commit
004881e5ff
1 changed files with 30 additions and 36 deletions
|
@ -5,21 +5,15 @@ job "im" {
|
||||||
group "synapse" {
|
group "synapse" {
|
||||||
count = 1
|
count = 1
|
||||||
|
|
||||||
constraint {
|
|
||||||
attribute = "${attr.unique.hostname}"
|
|
||||||
operator = "="
|
|
||||||
value = "cariacou"
|
|
||||||
}
|
|
||||||
|
|
||||||
network {
|
network {
|
||||||
port "http" {
|
port "http" {
|
||||||
to = 8008
|
to = 8008
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ephemeral_disk {
|
ephemeral_disk {
|
||||||
size = 1000
|
size = 1000
|
||||||
}
|
}
|
||||||
|
|
||||||
task "restore-db" {
|
task "restore-db" {
|
||||||
lifecycle {
|
lifecycle {
|
||||||
|
@ -31,12 +25,12 @@ job "im" {
|
||||||
config {
|
config {
|
||||||
image = "litestream/litestream:0.3.7"
|
image = "litestream/litestream:0.3.7"
|
||||||
args = [
|
args = [
|
||||||
"restore", "-config", "/etc/litestream.yml", "/ephemeral/homeserver.db"
|
"restore", "-config", "/etc/litestream.yml", "/ephemeral/homeserver.db"
|
||||||
]
|
]
|
||||||
volumes = [
|
volumes = [
|
||||||
"../alloc/data:/ephemeral",
|
"../alloc/data:/ephemeral",
|
||||||
"secrets/litestream.yml:/etc/litestream.yml"
|
"secrets/litestream.yml:/etc/litestream.yml"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
template {
|
template {
|
||||||
|
@ -56,7 +50,7 @@ job "im" {
|
||||||
image = "matrixdotorg/synapse:v1.48.0"
|
image = "matrixdotorg/synapse:v1.48.0"
|
||||||
ports = [ "http" ]
|
ports = [ "http" ]
|
||||||
|
|
||||||
entrypoint = [ "/usr/local/bin/python" ]
|
entrypoint = [ "/usr/local/bin/python" ]
|
||||||
args = [
|
args = [
|
||||||
"-m", "synapse.app.homeserver",
|
"-m", "synapse.app.homeserver",
|
||||||
"-n",
|
"-n",
|
||||||
|
@ -90,25 +84,25 @@ job "im" {
|
||||||
cpu = 1000
|
cpu = 1000
|
||||||
}
|
}
|
||||||
|
|
||||||
restart {
|
restart {
|
||||||
attempts = 3
|
attempts = 3
|
||||||
delay = "30s"
|
delay = "30s"
|
||||||
}
|
}
|
||||||
|
|
||||||
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-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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task "replicate-db" {
|
task "replicate-db" {
|
||||||
|
@ -116,12 +110,12 @@ job "im" {
|
||||||
config {
|
config {
|
||||||
image = "litestream/litestream:0.3.7"
|
image = "litestream/litestream:0.3.7"
|
||||||
args = [
|
args = [
|
||||||
"replicate", "-config", "/etc/litestream.yml"
|
"replicate", "-config", "/etc/litestream.yml"
|
||||||
]
|
]
|
||||||
volumes = [
|
volumes = [
|
||||||
"../alloc/data:/ephemeral",
|
"../alloc/data:/ephemeral",
|
||||||
"secrets/litestream.yml:/etc/litestream.yml"
|
"secrets/litestream.yml:/etc/litestream.yml"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
template {
|
template {
|
||||||
|
|
Loading…
Reference in a new issue